update inbox list
This commit is contained in:
30
vendor/scrivo/highlight.php/test/detect/1c/default.txt
vendored
Normal file
30
vendor/scrivo/highlight.php/test/detect/1c/default.txt
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
#ЗагрузитьИзФайла ext_module.txt // директива 7.7
|
||||
#Если Клиент ИЛИ НаКлиенте Тогда // инструкции препроцессора
|
||||
&НаКлиентеНаСервереБезКонтекста // директивы компиляции
|
||||
Функция ТолстыйКлиентОбычноеПриложение(Знач Параметр1 = Неопределено, // комментарий
|
||||
Параметр2 = "", ПараметрN = 123.45, ПарамNN) Экспорт // еще комментарий
|
||||
Попытка
|
||||
Результат_Булевы_Значения = Новый Структура("П1, П2", Истина, Ложь, NULL, Неопределено);
|
||||
Перейти ~МеткаGOTO; // комментарий
|
||||
РезультатТаблицаДат = Новый ТаблицаЗначений;
|
||||
РезультатТаблицаДат.Колонки.Добавить("Колонка1",
|
||||
Новый ОписаниеТипов("Дата", , ,
|
||||
Новый КвалификаторыДаты(ЧастиДаты.ДатаВремя));
|
||||
НС = РезультатТаблицаДат.Добавить(); НС["Колонка1"] = '20170101120000');
|
||||
Исключение
|
||||
ОписаниеОшибки = ОписаниеОшибки(); // встроенная функция
|
||||
Масс = Новый Массив; // встроенный тип
|
||||
Для Каждого Значение Из Масс Цикл
|
||||
Сообщить(Значение + Символы.ПС + "
|
||||
|продолжение строки"); // продолжение многострочной строки
|
||||
Продолжить; Прервать;
|
||||
КонецЦикла;
|
||||
СправочникСсылка = Справочники.Языки.НайтиПоНаименованию("ru"); // встроенные типы
|
||||
СправочникОбъект = СправочникСсылка.ПолучитьОбъект();
|
||||
ПеречислениеСсылка = Перечисления.ВидыМодификацииДанных.Изменен;
|
||||
ВызватьИсключение ОписаниеОшибки;
|
||||
КонецПопытки;
|
||||
~МеткаGOTO: // еще комментарий
|
||||
ВД = ВидДвиженияБухгалтерии.Дебет;
|
||||
КонецФункции // ТолстыйКлиентОбычноеПриложение()
|
||||
#КонецЕсли
|
||||
22
vendor/scrivo/highlight.php/test/detect/abnf/default.txt
vendored
Normal file
22
vendor/scrivo/highlight.php/test/detect/abnf/default.txt
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
; line comment
|
||||
|
||||
ruleset = [optional] *(group1 / group2 / SP) CRLF ; trailing comment
|
||||
|
||||
group1 = alt1
|
||||
group1 =/ alt2
|
||||
|
||||
alt1 = %x41-4D / %d78-90
|
||||
|
||||
alt2 = %b00100001
|
||||
|
||||
group2 = *1DIGIT / 2*HEXDIG / 3*4OCTET
|
||||
|
||||
optional = hex-codes
|
||||
/ literal
|
||||
/ sensitive
|
||||
/ insensitive
|
||||
|
||||
hex-codes = %x68.65.6C.6C.6F
|
||||
literal = "string literal"
|
||||
sensitive = %s"case-sensitive string"
|
||||
insensitive = %i"case-insensitive string"
|
||||
1
vendor/scrivo/highlight.php/test/detect/accesslog/default.txt
vendored
Normal file
1
vendor/scrivo/highlight.php/test/detect/accesslog/default.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
20.164.151.111 - - [20/Aug/2015:22:20:18 -0400] "GET /mywebpage/index.php HTTP/1.1" 403 772 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.220 Safari/535.1"
|
||||
24
vendor/scrivo/highlight.php/test/detect/actionscript/default.txt
vendored
Normal file
24
vendor/scrivo/highlight.php/test/detect/actionscript/default.txt
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
package org.example.dummy {
|
||||
import org.dummy.*;
|
||||
|
||||
/*define package inline interface*/
|
||||
public interface IFooBarzable {
|
||||
public function foo(... pairs):Array;
|
||||
}
|
||||
|
||||
public class FooBar implements IFooBarzable {
|
||||
static private var cnt:uint = 0;
|
||||
private var bar:String;
|
||||
|
||||
//constructor
|
||||
public function TestBar(bar:String):void {
|
||||
bar = bar;
|
||||
++cnt;
|
||||
}
|
||||
|
||||
public function foo(... pairs):Array {
|
||||
pairs.push(bar);
|
||||
return pairs;
|
||||
}
|
||||
}
|
||||
}
|
||||
17
vendor/scrivo/highlight.php/test/detect/ada/default.txt
vendored
Normal file
17
vendor/scrivo/highlight.php/test/detect/ada/default.txt
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
package body Sqlite.Simple is
|
||||
|
||||
Foo : int := int'Size;
|
||||
Bar : int := long'Size;
|
||||
|
||||
Error_Message_C : chars_ptr := Sqlite_Errstr (Error);
|
||||
Error_Message : String := Null_Ignore_Value (Error_Message_C);
|
||||
begin
|
||||
|
||||
Named : for Index in Foo..Bar loop
|
||||
Put ("Hi[]{}");
|
||||
end loop Named;
|
||||
|
||||
Foo := Bar;
|
||||
end Message;
|
||||
|
||||
end Sqlite.Simple;
|
||||
56
vendor/scrivo/highlight.php/test/detect/angelscript/default.txt
vendored
Normal file
56
vendor/scrivo/highlight.php/test/detect/angelscript/default.txt
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
interface IInterface
|
||||
{
|
||||
void DoSomething();
|
||||
}
|
||||
|
||||
namespace MyApplication
|
||||
{
|
||||
/*
|
||||
* This ia a test class.
|
||||
*/
|
||||
class SomeClass : IInterface
|
||||
{
|
||||
array<float> m_arr;
|
||||
|
||||
array<SomeClass@> m_children;
|
||||
array<array<SomeClass@>> m_subChildren; // Nested templates
|
||||
|
||||
int m_thing;
|
||||
|
||||
SomeClass()
|
||||
{
|
||||
// Add some integers
|
||||
m_arr.insertLast(1.0f);
|
||||
m_arr.insertLast(1.75f);
|
||||
m_arr.insertLast(3.14159f);
|
||||
uint x = 0x7fff0000;
|
||||
int y = 9001;
|
||||
}
|
||||
|
||||
int get_Thing() property { return m_thing; }
|
||||
void set_Thing(int x) property { m_thing = x; }
|
||||
|
||||
void DoSomething()
|
||||
{
|
||||
print("Something! " + 'stuff.');
|
||||
for (uint i = 0; i < m_arr.length(); i++) {
|
||||
print(" " + i + ": " + m_arr[i]);
|
||||
}
|
||||
}
|
||||
|
||||
protected void SomeProtectedFunction()
|
||||
{
|
||||
try {
|
||||
DoSomething();
|
||||
} catch {
|
||||
print("Exception while doing something!");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Main()
|
||||
{
|
||||
SomeClass@ c = SomeClass();
|
||||
c.DoSomething();
|
||||
}
|
||||
19
vendor/scrivo/highlight.php/test/detect/apache/default.txt
vendored
Normal file
19
vendor/scrivo/highlight.php/test/detect/apache/default.txt
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
# rewrite`s rules for wordpress pretty url
|
||||
LoadModule rewrite_module modules/mod_rewrite.so
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule . index.php [NC,L]
|
||||
|
||||
ExpiresActive On
|
||||
ExpiresByType application/x-javascript "access plus 1 days"
|
||||
|
||||
Order Deny,Allow
|
||||
Allow from All
|
||||
|
||||
<Location /maps/>
|
||||
RewriteMap map txt:map.txt
|
||||
RewriteMap lower int:tolower
|
||||
RewriteCond %{REQUEST_URI} ^/([^/.]+)\.html$ [NC]
|
||||
RewriteCond ${map:${lower:%1}|NOT_FOUND} !NOT_FOUND
|
||||
RewriteRule .? /index.php?q=${map:${lower:%1}} [NC,L]
|
||||
</Location>
|
||||
14
vendor/scrivo/highlight.php/test/detect/applescript/default.txt
vendored
Normal file
14
vendor/scrivo/highlight.php/test/detect/applescript/default.txt
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
repeat 5 times
|
||||
if foo is greater than bar then
|
||||
display dialog "Hello there"
|
||||
else
|
||||
beep
|
||||
end if
|
||||
end repeat
|
||||
|
||||
(* comment (*nested comment*) *)
|
||||
on do_something(s, y)
|
||||
return {s + pi, y mod 4}
|
||||
end do_something
|
||||
|
||||
do shell script "/bin/echo 'hello'"
|
||||
14
vendor/scrivo/highlight.php/test/detect/arcade/default.txt
vendored
Normal file
14
vendor/scrivo/highlight.php/test/detect/arcade/default.txt
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
/* Highlight.js est for Arcade */
|
||||
function testGeometry(element, point) {
|
||||
if (point.y != -1)
|
||||
return point;
|
||||
for (var i = 0 / 2; i < element.length; i++) {
|
||||
if (checkCondition($map.element[i]) === Infinity) {
|
||||
return DistanceGeodetic(element[i]);
|
||||
}
|
||||
}
|
||||
return element;
|
||||
}
|
||||
var filePath = "literal " + TextFormatting.BackSlash + TextFormatting.SingleQuote + ".ext"
|
||||
var d = Dictionary("field1", 1, "field2",2);
|
||||
return FeatureSet($map, ["POPULATION", "ELECTION-DATA"]);
|
||||
24
vendor/scrivo/highlight.php/test/detect/arduino/default.txt
vendored
Normal file
24
vendor/scrivo/highlight.php/test/detect/arduino/default.txt
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
Blink
|
||||
Turns on an LED on for one second, then off for one second, repeatedly.
|
||||
|
||||
This example code is in the public domain.
|
||||
*/
|
||||
|
||||
// Pin 13 has an LED connected on most Arduino boards.
|
||||
// give it a name:
|
||||
int led = 13;
|
||||
|
||||
// the setup routine runs once when you press reset:
|
||||
void setup() {
|
||||
// initialize the digital pin as an output.
|
||||
pinMode(led, OUTPUT);
|
||||
}
|
||||
|
||||
// the loop routine runs over and over again forever:
|
||||
void loop() {
|
||||
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
|
||||
delay(1000); // wait for a second
|
||||
digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
|
||||
delay(1000); // wait for a second
|
||||
}
|
||||
36
vendor/scrivo/highlight.php/test/detect/armasm/default.txt
vendored
Normal file
36
vendor/scrivo/highlight.php/test/detect/armasm/default.txt
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
.text
|
||||
|
||||
.global connect
|
||||
connect:
|
||||
mov r3, #2 ; s->sin_family = AF_INET
|
||||
strh r3, [sp]
|
||||
ldr r3, =server_port ; s->sin_port = server_port
|
||||
ldr r3, [r3]
|
||||
strh r3, [sp, #2]
|
||||
ldr r3, =server_addr ; s->sin_addr = server_addr
|
||||
ldr r3, [r3]
|
||||
str r3, [sp, #4]
|
||||
mov r3, #0 ; bzero(&s->sin_zero)
|
||||
str r3, [sp, #8]
|
||||
str r3, [sp, #12]
|
||||
mov r1, sp ; const struct sockaddr *addr = sp
|
||||
|
||||
ldr r7, =connect_call
|
||||
ldr r7, [r7]
|
||||
swi #0
|
||||
|
||||
add sp, sp, #16
|
||||
pop {r0} ; pop sockfd
|
||||
|
||||
pop {r7}
|
||||
pop {fp, ip, lr}
|
||||
mov sp, ip
|
||||
bx lr
|
||||
|
||||
.data
|
||||
socket_call: .long 281
|
||||
connect_call: .long 283
|
||||
|
||||
/* all addresses are network byte-order (big-endian) */
|
||||
server_addr: .long 0x0100007f ; localhost
|
||||
server_port: .hword 0x0b1a
|
||||
65
vendor/scrivo/highlight.php/test/detect/asciidoc/default.txt
vendored
Normal file
65
vendor/scrivo/highlight.php/test/detect/asciidoc/default.txt
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
Hello, World!
|
||||
============
|
||||
Author Name, <author@domain.foo>
|
||||
|
||||
you can write text http://example.com[with links], optionally
|
||||
using an explicit link:http://example.com[link prefix].
|
||||
|
||||
* single quotes around a phrase place 'emphasis'
|
||||
** alternatively, you can put underlines around a phrase to add _emphasis_
|
||||
* astericks around a phrase make the text *bold*
|
||||
* pluses around a phrase make it +monospaced+
|
||||
* `smart' quotes using a leading backtick and trailing single quote
|
||||
** use two of each for double ``smart'' quotes
|
||||
|
||||
- escape characters are supported
|
||||
- you can escape a quote inside emphasized text like 'here\'s johnny!'
|
||||
|
||||
term:: definition
|
||||
another term:: another definition
|
||||
|
||||
// this is just a comment
|
||||
|
||||
Let's make a break.
|
||||
|
||||
'''
|
||||
|
||||
////
|
||||
we'll be right with you
|
||||
|
||||
after this brief interruption.
|
||||
////
|
||||
|
||||
== We're back!
|
||||
|
||||
Want to see a image::images/tiger.png[Tiger]?
|
||||
|
||||
.Nested highlighting
|
||||
++++
|
||||
<this_is inline="xml"></this_is>
|
||||
++++
|
||||
|
||||
____
|
||||
asciidoc is so powerful.
|
||||
____
|
||||
|
||||
another quote:
|
||||
|
||||
[quote, Sir Arthur Conan Doyle, The Adventures of Sherlock Holmes]
|
||||
____
|
||||
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
|
||||
____
|
||||
|
||||
Getting Literal
|
||||
---------------
|
||||
|
||||
want to get literal? prefix a line with a space.
|
||||
|
||||
....
|
||||
I'll join that party, too.
|
||||
....
|
||||
|
||||
. one thing (yeah!)
|
||||
. two thing `i can write code`, and `more` wipee!
|
||||
|
||||
NOTE: AsciiDoc is quite cool, you should try it.
|
||||
23
vendor/scrivo/highlight.php/test/detect/aspectj/default.txt
vendored
Normal file
23
vendor/scrivo/highlight.php/test/detect/aspectj/default.txt
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
package com.aspectj.syntax;
|
||||
import org.aspectj.lang.annotation.AdviceName;
|
||||
|
||||
privileged public aspect LoggingAspect percflowbelow(ajia.services.*){
|
||||
private pointcut getResult() : call(* *(..) throws SQLException) && args(Account, .., int);
|
||||
@AdviceName("CheckValidEmail")
|
||||
before (Customer hu) : getResult(hu){
|
||||
System.out.println("Your mail address is valid!");
|
||||
}
|
||||
Object around() throws InsufficientBalanceException: getResult() && call(Customer.new(String,String,int,int,int)){
|
||||
return proceed();
|
||||
}
|
||||
public Cache getCache() {
|
||||
return this.cache;
|
||||
}
|
||||
pointcut beanPropertyChange(BeanSupport bean, Object newValue): execution(void BeanSupport+.set*(*)) && args(newValue) && this(bean);
|
||||
declare parents: banking.entities.* implements BeanSupport;
|
||||
declare warning : call(void TestSoftening.perform()): "Please ensure you are not calling this from an AWT thread";
|
||||
private String Identifiable.id;
|
||||
public void Identifiable.setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
}
|
||||
24
vendor/scrivo/highlight.php/test/detect/autohotkey/default.txt
vendored
Normal file
24
vendor/scrivo/highlight.php/test/detect/autohotkey/default.txt
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
; hotkeys and hotstrings
|
||||
#a::WinSet, AlwaysOnTop, Toggle, A
|
||||
#Space::
|
||||
MsgBox, Percent sign (`%) need to be escaped.
|
||||
Run "C:\Program Files\some\program.exe"
|
||||
Gosub, label1
|
||||
return
|
||||
::btw::by the way
|
||||
; volume
|
||||
#Numpad8::Send {Volume_Up}
|
||||
#Numpad5::Send {Volume_Mute}
|
||||
#Numpad2::Send {Volume_Down}
|
||||
|
||||
label1:
|
||||
if (Clipboard = "")
|
||||
{
|
||||
MsgBox, , Clipboard, Empty!
|
||||
}
|
||||
else
|
||||
{
|
||||
StringReplace, temp, Clipboard, old, new, All
|
||||
MsgBox, , Clipboard, %temp%
|
||||
}
|
||||
return
|
||||
16
vendor/scrivo/highlight.php/test/detect/autoit/default.txt
vendored
Normal file
16
vendor/scrivo/highlight.php/test/detect/autoit/default.txt
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
#NoTrayIcon
|
||||
#AutoIt3Wrapper_Run_Tidy=Y
|
||||
#include <Misc.au3>
|
||||
|
||||
_Singleton(@ScriptName) ; Allow only one instance
|
||||
example(0, 10)
|
||||
|
||||
Func example($min, $max)
|
||||
For $i = $min To $max
|
||||
If Mod($i, 2) == 0 Then
|
||||
MsgBox(64, "Message", $i & ' is even number!')
|
||||
Else
|
||||
MsgBox(64, "Message", $i & ' is odd number!')
|
||||
EndIf
|
||||
Next
|
||||
EndFunc ;==>example
|
||||
19
vendor/scrivo/highlight.php/test/detect/avrasm/default.txt
vendored
Normal file
19
vendor/scrivo/highlight.php/test/detect/avrasm/default.txt
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
;* Title: Block Copy Routines
|
||||
;* Version: 1.1
|
||||
|
||||
.include "8515def.inc"
|
||||
|
||||
rjmp RESET ;reset handle
|
||||
|
||||
.def flashsize=r16 ;size of block to be copied
|
||||
|
||||
flash2ram:
|
||||
lpm ;get constant
|
||||
st Y+,r0 ;store in SRAM and increment Y-pointer
|
||||
adiw ZL,1 ;increment Z-pointer
|
||||
dec flashsize
|
||||
brne flash2ram ;if not end of table, loop more
|
||||
ret
|
||||
|
||||
.def ramtemp =r1 ;temporary storage register
|
||||
.def ramsize =r16 ;size of block to be copied
|
||||
16
vendor/scrivo/highlight.php/test/detect/awk/default.txt
vendored
Normal file
16
vendor/scrivo/highlight.php/test/detect/awk/default.txt
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
BEGIN {
|
||||
POPService = "/inet/tcp/0/emailhost/pop3"
|
||||
RS = ORS = "\r\n"
|
||||
print "user name" |& POPService
|
||||
POPService |& getline
|
||||
print "pass password" |& POPService
|
||||
POPService |& getline
|
||||
print "retr 1" |& POPService
|
||||
POPService |& getline
|
||||
if ($1 != "+OK") exit
|
||||
print "quit" |& POPService
|
||||
RS = "\r\n\\.\r\n"
|
||||
POPService |& getline
|
||||
print $0
|
||||
close(POPService)
|
||||
}
|
||||
32
vendor/scrivo/highlight.php/test/detect/axapta/default.txt
vendored
Normal file
32
vendor/scrivo/highlight.php/test/detect/axapta/default.txt
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
class ExchRateLoadBatch extends RunBaseBatch {
|
||||
ExchRateLoad rbc;
|
||||
container currencies;
|
||||
boolean actual;
|
||||
boolean overwrite;
|
||||
date beg;
|
||||
date end;
|
||||
|
||||
#define.CurrentVersion(5)
|
||||
|
||||
#localmacro.CurrentList
|
||||
currencies,
|
||||
actual,
|
||||
beg,
|
||||
end
|
||||
#endmacro
|
||||
}
|
||||
|
||||
public boolean unpack(container packedClass) {
|
||||
container base;
|
||||
boolean ret;
|
||||
Integer version = runbase::getVersion(packedClass);
|
||||
|
||||
switch (version) {
|
||||
case #CurrentVersion:
|
||||
[version, #CurrentList] = packedClass;
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
17
vendor/scrivo/highlight.php/test/detect/bash/default.txt
vendored
Normal file
17
vendor/scrivo/highlight.php/test/detect/bash/default.txt
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
###### CONFIG
|
||||
ACCEPTED_HOSTS="/root/.hag_accepted.conf"
|
||||
BE_VERBOSE=false
|
||||
|
||||
if [ "$UID" -ne 0 ]
|
||||
then
|
||||
echo "Superuser rights required"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
genApacheConf(){
|
||||
echo -e "# Host ${HOME_DIR}$1/$2 :"
|
||||
}
|
||||
|
||||
echo '"quoted"' | tr -d \" > text.txt
|
||||
22
vendor/scrivo/highlight.php/test/detect/basic/default.txt
vendored
Normal file
22
vendor/scrivo/highlight.php/test/detect/basic/default.txt
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
10 CLS
|
||||
20 FOR I = 0 TO 15
|
||||
22 FOR J = 0 TO 7
|
||||
30 COLOR I,J
|
||||
40 PRINT " ** ";
|
||||
45 NEXT J
|
||||
46 COLOR I,0
|
||||
47 GOSUB 100
|
||||
48 PRINT
|
||||
50 NEXT I
|
||||
60 COLOR 15,0
|
||||
99 END
|
||||
100 FOR T = 65 TO 90
|
||||
101 PRINT CHR$(T);
|
||||
102 NEXT T
|
||||
103 RETURN
|
||||
200 REM Data types test
|
||||
201 TOTAL# = 3.30# 'Double precision variable
|
||||
202 BALANCE! = 3! 'Single precision variable
|
||||
203 B2! = 12e5 '120000
|
||||
204 ITEMS% = 10 'Integer variable
|
||||
205 HEXTEST = &H12DB 'Hex value
|
||||
8
vendor/scrivo/highlight.php/test/detect/bnf/default.txt
vendored
Normal file
8
vendor/scrivo/highlight.php/test/detect/bnf/default.txt
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<syntax> ::= <rule> | <rule> <syntax>
|
||||
<rule> ::= <opt-whitespace> "<" <rule-name> ">" <opt-whitespace> "::=" <opt-whitespace> <expression> <line-end>
|
||||
<opt-whitespace> ::= " " <opt-whitespace> | ""
|
||||
<expression> ::= <list> | <list> <opt-whitespace> "|" <opt-whitespace> <expression>
|
||||
<line-end> ::= <opt-whitespace> <EOL> | <line-end> <line-end>
|
||||
<list> ::= <term> | <term> <opt-whitespace> <list>
|
||||
<term> ::= <literal> | "<" <rule-name> ">"
|
||||
<literal> ::= '"' <text> '"' | "'" <text> "'"
|
||||
17
vendor/scrivo/highlight.php/test/detect/brainfuck/default.txt
vendored
Normal file
17
vendor/scrivo/highlight.php/test/detect/brainfuck/default.txt
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
++++++++++
|
||||
[ 3*10 and 10*10
|
||||
->+++>++++++++++<<
|
||||
]>>
|
||||
[ filling cells
|
||||
->++>>++>++>+>++>>++>++>++>++>++>++>++>++>++>++>++[</]<[<]<[<]>>
|
||||
]<
|
||||
+++++++++<<
|
||||
[ rough codes correction loop
|
||||
->>>+>+>+>+++>+>+>+>+>+>+>+>+>+>+>+>+>+>+[<]<
|
||||
]
|
||||
more accurate сodes correction
|
||||
>>>++>
|
||||
-->+++++++>------>++++++>++>+++++++++>++++++++++>++++++++>--->++++++++++>------>++++++>
|
||||
++>+++++++++++>++++++++++++>------>+++
|
||||
rewind and output
|
||||
[<]>[.>]
|
||||
33
vendor/scrivo/highlight.php/test/detect/cal/default.txt
vendored
Normal file
33
vendor/scrivo/highlight.php/test/detect/cal/default.txt
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
OBJECT Codeunit 11 Gen. Jnl.-Check Line
|
||||
{
|
||||
OBJECT-PROPERTIES
|
||||
{
|
||||
Date=09-09-14;
|
||||
Time=12:00:00;
|
||||
Version List=NAVW18.00;
|
||||
}
|
||||
PROPERTIES
|
||||
{
|
||||
TableNo=81;
|
||||
Permissions=TableData 252=rimd;
|
||||
OnRun=BEGIN
|
||||
GLSetup.GET;
|
||||
RunCheck(Rec);
|
||||
END;
|
||||
|
||||
}
|
||||
CODE
|
||||
{
|
||||
VAR
|
||||
Text000@1000 : TextConst 'ENU=can only be a closing date for G/L entries';
|
||||
Text001@1001 : TextConst 'ENU=is not within your range of allowed posting dates';
|
||||
|
||||
PROCEDURE ErrorIfPositiveAmt@2(GenJnlLine@1000 : Record 81);
|
||||
BEGIN
|
||||
IF GenJnlLine.Amount > 0 THEN
|
||||
GenJnlLine.FIELDERROR(Amount,Text008);
|
||||
END;
|
||||
|
||||
LOCAL PROCEDURE CheckGenJnlLineDocType@7(GenJnlLine@1001 : Record 81);
|
||||
}
|
||||
}
|
||||
55
vendor/scrivo/highlight.php/test/detect/capnproto/default.txt
vendored
Normal file
55
vendor/scrivo/highlight.php/test/detect/capnproto/default.txt
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
@0xdbb9ad1f14bf0b36; # unique file ID, generated by `capnp id`
|
||||
|
||||
struct Person {
|
||||
name @0 :Text;
|
||||
birthdate @3 :Date;
|
||||
|
||||
email @1 :Text;
|
||||
phones @2 :List(PhoneNumber);
|
||||
|
||||
struct PhoneNumber {
|
||||
number @0 :Text;
|
||||
type @1 :Type;
|
||||
|
||||
enum Type {
|
||||
mobile @0;
|
||||
home @1;
|
||||
work @2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
struct Date {
|
||||
year @0 :Int16;
|
||||
month @1 :UInt8;
|
||||
day @2 :UInt8;
|
||||
flags @3 :List(Bool) = [ true, false, false, true ];
|
||||
}
|
||||
|
||||
interface Node {
|
||||
isDirectory @0 () -> (result :Bool);
|
||||
}
|
||||
|
||||
interface Directory extends(Node) {
|
||||
list @0 () -> (list: List(Entry));
|
||||
struct Entry {
|
||||
name @0 :Text;
|
||||
node @1 :Node;
|
||||
}
|
||||
|
||||
create @1 (name :Text) -> (file :File);
|
||||
mkdir @2 (name :Text) -> (directory :Directory)
|
||||
open @3 (name :Text) -> (node :Node);
|
||||
delete @4 (name :Text);
|
||||
link @5 (name :Text, node :Node);
|
||||
}
|
||||
|
||||
interface File extends(Node) {
|
||||
size @0 () -> (size: UInt64);
|
||||
read @1 (startAt :UInt64 = 0, amount :UInt64 = 0xffffffffffffffff)
|
||||
-> (data: Data);
|
||||
# Default params = read entire file.
|
||||
|
||||
write @2 (startAt :UInt64, data :Data);
|
||||
truncate @3 (size :UInt64);
|
||||
}
|
||||
8
vendor/scrivo/highlight.php/test/detect/ceylon/default.txt
vendored
Normal file
8
vendor/scrivo/highlight.php/test/detect/ceylon/default.txt
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
shared void run() {
|
||||
print("Hello, `` process.arguments.first else "World" ``!");
|
||||
}
|
||||
class Counter(count=0) {
|
||||
variable Integer count;
|
||||
shared Integer currentValue => count;
|
||||
shared void increment() => count++;
|
||||
}
|
||||
30
vendor/scrivo/highlight.php/test/detect/clean/default.txt
vendored
Normal file
30
vendor/scrivo/highlight.php/test/detect/clean/default.txt
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
module fsieve
|
||||
|
||||
import StdClass; // RWS
|
||||
import StdInt, StdReal
|
||||
|
||||
NrOfPrimes :== 3000
|
||||
|
||||
primes :: [Int]
|
||||
primes = pr where pr = [5 : sieve 7 4 pr]
|
||||
|
||||
sieve :: Int !Int [Int] -> [Int]
|
||||
sieve g i prs
|
||||
| isPrime prs g (toInt (sqrt (toReal g))) = [g : sieve` g i prs]
|
||||
| otherwise = sieve (g + i) (6 - i) prs
|
||||
|
||||
sieve` :: Int Int [Int] -> [Int]
|
||||
sieve` g i prs = sieve (g + i) (6 - i) prs
|
||||
|
||||
isPrime :: [Int] !Int Int -> Bool
|
||||
isPrime [f:r] pr bd
|
||||
| f>bd = True
|
||||
| pr rem f==0 = False
|
||||
| otherwise = isPrime r pr bd
|
||||
|
||||
select :: [x] Int -> x
|
||||
select [f:r] 1 = f
|
||||
select [f:r] n = select r (n - 1)
|
||||
|
||||
Start :: Int
|
||||
Start = select [2, 3 : primes] NrOfPrimes
|
||||
7
vendor/scrivo/highlight.php/test/detect/clojure-repl/default.txt
vendored
Normal file
7
vendor/scrivo/highlight.php/test/detect/clojure-repl/default.txt
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
user=> (defn f [x y]
|
||||
#_=> (+ x y))
|
||||
#'user/f
|
||||
user=> (f 5 7)
|
||||
12
|
||||
user=> nil
|
||||
nil
|
||||
11
vendor/scrivo/highlight.php/test/detect/clojure/default.txt
vendored
Normal file
11
vendor/scrivo/highlight.php/test/detect/clojure/default.txt
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
(def ^:dynamic chunk-size 17)
|
||||
|
||||
(defn next-chunk [rdr]
|
||||
(let [buf (char-array chunk-size)
|
||||
s (.read rdr buf)]
|
||||
(when (pos? s)
|
||||
(java.nio.CharBuffer/wrap buf 0 s))))
|
||||
|
||||
(defn chunk-seq [rdr]
|
||||
(when-let [chunk (next-chunk rdr)]
|
||||
(cons chunk (lazy-seq (chunk-seq rdr)))))
|
||||
19
vendor/scrivo/highlight.php/test/detect/cmake/default.txt
vendored
Normal file
19
vendor/scrivo/highlight.php/test/detect/cmake/default.txt
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
cmake_minimum_required(VERSION 2.8.8)
|
||||
project(cmake_example)
|
||||
|
||||
# Show message on Linux platform
|
||||
if (${CMAKE_SYSTEM_NAME} MATCHES Linux)
|
||||
message("Good choice, bro!")
|
||||
endif()
|
||||
|
||||
# Tell CMake to run moc when necessary:
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
# As moc files are generated in the binary dir,
|
||||
# tell CMake to always look for includes there:
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
|
||||
# Widgets finds its own dependencies.
|
||||
find_package(Qt5Widgets REQUIRED)
|
||||
|
||||
add_executable(myproject main.cpp mainwindow.cpp)
|
||||
qt5_use_modules(myproject Widgets)
|
||||
13
vendor/scrivo/highlight.php/test/detect/coffeescript/default.txt
vendored
Normal file
13
vendor/scrivo/highlight.php/test/detect/coffeescript/default.txt
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
grade = (student, period=(if b? then 7 else 6)) ->
|
||||
if student.excellentWork
|
||||
"A+"
|
||||
else if student.okayStuff
|
||||
if student.triedHard then "B" else "B-"
|
||||
else
|
||||
"C"
|
||||
|
||||
class Animal extends Being
|
||||
constructor: (@name) ->
|
||||
|
||||
move: (meters) ->
|
||||
alert @name + " moved #{meters}m."
|
||||
41
vendor/scrivo/highlight.php/test/detect/coq/default.txt
vendored
Normal file
41
vendor/scrivo/highlight.php/test/detect/coq/default.txt
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
Inductive seq : nat -> Set :=
|
||||
| niln : seq 0
|
||||
| consn : forall n : nat, nat -> seq n -> seq (S n).
|
||||
|
||||
Fixpoint length (n : nat) (s : seq n) {struct s} : nat :=
|
||||
match s with
|
||||
| niln => 0
|
||||
| consn i _ s' => S (length i s')
|
||||
end.
|
||||
|
||||
Theorem length_corr : forall (n : nat) (s : seq n), length n s = n.
|
||||
Proof.
|
||||
intros n s.
|
||||
|
||||
(* reasoning by induction over s. Then, we have two new goals
|
||||
corresponding on the case analysis about s (either it is
|
||||
niln or some consn *)
|
||||
induction s.
|
||||
|
||||
(* We are in the case where s is void. We can reduce the
|
||||
term: length 0 niln *)
|
||||
simpl.
|
||||
|
||||
(* We obtain the goal 0 = 0. *)
|
||||
trivial.
|
||||
|
||||
(* now, we treat the case s = consn n e s with induction
|
||||
hypothesis IHs *)
|
||||
simpl.
|
||||
|
||||
(* The induction hypothesis has type length n s = n.
|
||||
So we can use it to perform some rewriting in the goal: *)
|
||||
rewrite IHs.
|
||||
|
||||
(* Now the goal is the trivial equality: S n = S n *)
|
||||
trivial.
|
||||
|
||||
(* Now all sub cases are closed, we perform the ultimate
|
||||
step: typing the term built using tactics and save it as
|
||||
a witness of the theorem. *)
|
||||
Qed.
|
||||
21
vendor/scrivo/highlight.php/test/detect/cos/default.txt
vendored
Normal file
21
vendor/scrivo/highlight.php/test/detect/cos/default.txt
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
#dim test as %Library.Integer
|
||||
SET test = 123.099
|
||||
set ^global = %request.Content
|
||||
Write "Current date """, $ztimestamp, """, result: ", test + ^global = 125.099
|
||||
do ##class(Cinema.Utils).AddShow("test") // class method call
|
||||
do ##super() ; another one-line comment
|
||||
d:(^global = 2) ..thisClassMethod(1, 2, "test")
|
||||
/*
|
||||
* Sub-languages support:
|
||||
*/
|
||||
&sql( SELECT * FROM Cinema.Film WHERE Length > 2 )
|
||||
&js<for (var i = 0; i < String("test").split("").length); ++i) {
|
||||
console.log(i);
|
||||
}>
|
||||
&html<<!DOCTYPE html>
|
||||
<html>
|
||||
<head> <meta name="test"/> </head>
|
||||
<body>Test</body>
|
||||
</html>>
|
||||
|
||||
quit $$$OK
|
||||
16
vendor/scrivo/highlight.php/test/detect/cpp/comment.txt
vendored
Normal file
16
vendor/scrivo/highlight.php/test/detect/cpp/comment.txt
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
To use this program, compile it -- if you can -- and then type something like:
|
||||
|
||||
chan -n 5000 -d 2 < input.txt
|
||||
|
||||
In this case, it will produce 5000 words of output, checking two-word groups.
|
||||
(The explanation above describes two-word generation. If you type "-d 3",
|
||||
the program will find three-word groups, and so on. Greater depths make more
|
||||
sense, but they require more input text and take more time to process.)
|
||||
|
||||
http://www.eblong.com/zarf/markov/
|
||||
*/
|
||||
|
||||
|
||||
/* make cpp win deterministically over others with C block comments */
|
||||
cout << endl;
|
||||
14
vendor/scrivo/highlight.php/test/detect/cpp/default.txt
vendored
Normal file
14
vendor/scrivo/highlight.php/test/detect/cpp/default.txt
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
#include <iostream>
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
|
||||
/* An annoying "Hello World" example */
|
||||
for (auto i = 0; i < 0xFFFF; i++)
|
||||
cout << "Hello, World!" << endl;
|
||||
|
||||
char c = '\n';
|
||||
unordered_map <string, vector<string> > m;
|
||||
m["key"] = "\\\\"; // this is an error
|
||||
|
||||
return -2e3 + 12l;
|
||||
}
|
||||
48
vendor/scrivo/highlight.php/test/detect/crmsh/default.txt
vendored
Normal file
48
vendor/scrivo/highlight.php/test/detect/crmsh/default.txt
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
node webui
|
||||
node 168633611: node1
|
||||
rsc_template web-server apache \
|
||||
params port=8000 \
|
||||
op monitor interval=10s
|
||||
# Never use this STONITH agent in production!
|
||||
primitive development-stonith stonith:null \
|
||||
params hostlist="webui node1 node2 node3"
|
||||
primitive proxy systemd:haproxy \
|
||||
op monitor interval=10s
|
||||
primitive proxy-vip IPaddr2 \
|
||||
params ip=10.13.37.20
|
||||
primitive srv1 @web-server
|
||||
primitive srv2 @web-server
|
||||
primitive test1 Dummy
|
||||
primitive test2 IPaddr2 \
|
||||
params ip=10.13.37.99
|
||||
primitive vip1 IPaddr2 \
|
||||
params ip=10.13.37.21 \
|
||||
op monitor interval=20s
|
||||
primitive vip2 IPaddr2 \
|
||||
params ip=10.13.37.22 \
|
||||
op monitor interval=20s
|
||||
group g-proxy proxy-vip proxy
|
||||
group g-serv1 vip1 srv1
|
||||
group g-serv2 vip2 srv2
|
||||
# Never put the two web servers on the same node
|
||||
colocation co-serv -inf: g-serv1 g-serv2
|
||||
# Never put any web server or haproxy on webui
|
||||
location l-avoid-webui { g-proxy g-serv1 g-serv2 } -inf: webui
|
||||
# Prever to spread groups across nodes
|
||||
location l-proxy g-proxy 200: node1
|
||||
location l-serv1 g-serv1 200: node2
|
||||
location l-serv2 g-serv2 200: node3
|
||||
property cib-bootstrap-options: \
|
||||
stonith-enabled=true \
|
||||
no-quorum-policy=ignore \
|
||||
placement-strategy=balanced \
|
||||
have-watchdog=false \
|
||||
dc-version="1.1.13-1.1.13+git20150827.e8888b9" \
|
||||
cluster-infrastructure=corosync \
|
||||
cluster-name=hacluster
|
||||
rsc_defaults rsc-options: \
|
||||
resource-stickiness=1 \
|
||||
migration-threshold=3
|
||||
op_defaults op-options: \
|
||||
timeout=600 \
|
||||
record-pending=true
|
||||
29
vendor/scrivo/highlight.php/test/detect/crystal/default.txt
vendored
Normal file
29
vendor/scrivo/highlight.php/test/detect/crystal/default.txt
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
class Person
|
||||
def initialize(@name : String)
|
||||
end
|
||||
|
||||
def greet
|
||||
puts "Hi, I'm #{@name}"
|
||||
end
|
||||
end
|
||||
|
||||
class Employee < Person
|
||||
end
|
||||
|
||||
employee = Employee.new "John"
|
||||
employee.greet # => "Hi, I'm John"
|
||||
employee.is_a?(Person) # => true
|
||||
|
||||
@[Link("m")]
|
||||
lib C
|
||||
# In C: double cos(double x)
|
||||
fun cos(value : Float64) : Float64
|
||||
end
|
||||
|
||||
C.cos(1.5_f64) # => 0.0707372
|
||||
|
||||
s = uninitialized String
|
||||
s = <<-'STR'
|
||||
\hello\world
|
||||
\hello\world
|
||||
STR
|
||||
16
vendor/scrivo/highlight.php/test/detect/cs/default.txt
vendored
Normal file
16
vendor/scrivo/highlight.php/test/detect/cs/default.txt
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
using System.IO.Compression;
|
||||
|
||||
#pragma warning disable 414, 3021
|
||||
|
||||
namespace MyApplication
|
||||
{
|
||||
[Obsolete("...")]
|
||||
class Program : IInterface
|
||||
{
|
||||
public static List<int> JustDoIt(int count)
|
||||
{
|
||||
Console.WriteLine($"Hello {Name}!");
|
||||
return new List<int>(new int[] { 1, 2, 3 })
|
||||
}
|
||||
}
|
||||
}
|
||||
5
vendor/scrivo/highlight.php/test/detect/csp/default.txt
vendored
Normal file
5
vendor/scrivo/highlight.php/test/detect/csp/default.txt
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
Content-Security-Policy:
|
||||
default-src 'self';
|
||||
style-src 'self' css.example.com;
|
||||
img-src *.example.com;
|
||||
script-src 'unsafe-eval' 'self' js.example.com 'nonce-Nc3n83cnSAd3wc3Sasdfn939hc3'
|
||||
16
vendor/scrivo/highlight.php/test/detect/css/default.txt
vendored
Normal file
16
vendor/scrivo/highlight.php/test/detect/css/default.txt
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
@font-face {
|
||||
font-family: Chunkfive; src: url('Chunkfive.otf');
|
||||
}
|
||||
|
||||
body, .usertext {
|
||||
color: #F0F0F0; background: #600;
|
||||
font-family: Chunkfive, sans;
|
||||
--heading-1: 30px/32px Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
@import url(print.css);
|
||||
@media print {
|
||||
a[href^=http]::after {
|
||||
content: attr(href)
|
||||
}
|
||||
}
|
||||
44
vendor/scrivo/highlight.php/test/detect/d/default.txt
vendored
Normal file
44
vendor/scrivo/highlight.php/test/detect/d/default.txt
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
#!/usr/bin/rdmd
|
||||
// Computes average line length for standard input.
|
||||
import std.stdio;
|
||||
|
||||
/+
|
||||
this is a /+ nesting +/ comment
|
||||
+/
|
||||
|
||||
enum COMPILED_ON = __TIMESTAMP__; // special token
|
||||
|
||||
enum character = '©';
|
||||
enum copy_valid = '©';
|
||||
enum backslash_escaped = '\\';
|
||||
|
||||
// string literals
|
||||
enum str = `hello "world"!`;
|
||||
enum multiline = r"lorem
|
||||
ipsum
|
||||
dolor"; // wysiwyg string, no escapes here allowed
|
||||
enum multiline2 = "sit
|
||||
amet
|
||||
\"adipiscing\"
|
||||
elit.";
|
||||
enum hex = x"66 6f 6f"; // same as "foo"
|
||||
|
||||
#line 5
|
||||
|
||||
// float literals
|
||||
enum f = [3.14f, .1, 1., 1e100, 0xc0de.01p+100];
|
||||
|
||||
static if (something == true) {
|
||||
import std.algorithm;
|
||||
}
|
||||
|
||||
void main() pure nothrow @safe {
|
||||
ulong lines = 0;
|
||||
double sumLength = 0;
|
||||
foreach (line; stdin.byLine()) {
|
||||
++lines;
|
||||
sumLength += line.length;
|
||||
}
|
||||
writeln("Average line length: ",
|
||||
lines ? sumLength / lines : 0);
|
||||
}
|
||||
37
vendor/scrivo/highlight.php/test/detect/dart/default.txt
vendored
Normal file
37
vendor/scrivo/highlight.php/test/detect/dart/default.txt
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
library app;
|
||||
import 'dart:html';
|
||||
|
||||
part 'app2.dart';
|
||||
|
||||
/**
|
||||
* Class description and [link](http://dartlang.org/).
|
||||
*/
|
||||
@Awesome('it works!')
|
||||
class SomeClass<S extends Iterable> extends BaseClass<S> implements Comparable {
|
||||
factory SomeClass(num param);
|
||||
SomeClass._internal(int q) : super() {
|
||||
assert(q != 1);
|
||||
double z = 0.0;
|
||||
}
|
||||
|
||||
/// **Sum** function
|
||||
int sum(int a, int b) => a + b;
|
||||
|
||||
ElementList els() => querySelectorAll('.dart');
|
||||
}
|
||||
|
||||
String str = ' (${'parameter' + 'zxc'})';
|
||||
String str = " (${true ? 2 + 2 / 2 : null})";
|
||||
String str = " ($variable)";
|
||||
String str = r'\nraw\';
|
||||
String str = r"\nraw\";
|
||||
var str = '''
|
||||
Something ${2+3}
|
||||
''';
|
||||
var str = r"""
|
||||
Something ${2+3}
|
||||
""";
|
||||
|
||||
checkVersion() async {
|
||||
var version = await lookUpVersion();
|
||||
}
|
||||
30
vendor/scrivo/highlight.php/test/detect/delphi/default.txt
vendored
Normal file
30
vendor/scrivo/highlight.php/test/detect/delphi/default.txt
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
TList = Class(TObject)
|
||||
Private
|
||||
Some: String;
|
||||
Public
|
||||
Procedure Inside; // Suxx
|
||||
End;{TList}
|
||||
|
||||
Procedure CopyFile(InFileName, var OutFileName: String);
|
||||
Const
|
||||
BufSize = 4096; (* Huh? *)
|
||||
Var
|
||||
InFile, OutFile: TStream;
|
||||
Buffer: Array[1..BufSize] Of Byte;
|
||||
ReadBufSize: Integer;
|
||||
Begin
|
||||
InFile := Nil;
|
||||
OutFile := Nil;
|
||||
Try
|
||||
InFile := TFileStream.Create(InFileName, fmOpenRead);
|
||||
OutFile := TFileStream.Create(OutFileName, fmCreate);
|
||||
Repeat
|
||||
ReadBufSize := InFile.Read(Buffer, BufSize);
|
||||
OutFile.Write(Buffer, ReadBufSize);
|
||||
Until ReadBufSize<>BufSize;
|
||||
Log('File ''' + InFileName + ''' copied'#13#10);
|
||||
Finally
|
||||
InFile.Free;
|
||||
OutFile.Free;
|
||||
End;{Try}
|
||||
End;{CopyFile}
|
||||
30
vendor/scrivo/highlight.php/test/detect/diff/default.txt
vendored
Normal file
30
vendor/scrivo/highlight.php/test/detect/diff/default.txt
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
Index: languages/ini.js
|
||||
===================================================================
|
||||
--- languages/ini.js (revision 199)
|
||||
+++ languages/ini.js (revision 200)
|
||||
@@ -1,8 +1,7 @@
|
||||
hljs.LANGUAGES.ini =
|
||||
{
|
||||
case_insensitive: true,
|
||||
- defaultMode:
|
||||
- {
|
||||
+ defaultMode: {
|
||||
contains: ['comment', 'title', 'setting'],
|
||||
illegal: '[^\\s]'
|
||||
},
|
||||
|
||||
*** /path/to/original timestamp
|
||||
--- /path/to/new timestamp
|
||||
***************
|
||||
*** 1,3 ****
|
||||
--- 1,9 ----
|
||||
+ This is an important
|
||||
+ notice! It should
|
||||
+ therefore be located at
|
||||
+ the beginning of this
|
||||
+ document!
|
||||
|
||||
! compress the size of the
|
||||
! changes.
|
||||
|
||||
It is important to spell
|
||||
15
vendor/scrivo/highlight.php/test/detect/django/default.txt
vendored
Normal file
15
vendor/scrivo/highlight.php/test/detect/django/default.txt
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
{% if articles|length %}
|
||||
{% for article in articles %}
|
||||
|
||||
{% custom %}
|
||||
|
||||
{# Striped table #}
|
||||
<tr class="{% cycle odd,even %}">
|
||||
<td>{{ article|default:"Hi... " }}</td>
|
||||
<td {% if article.today %}class="today"{% endif %}>
|
||||
Published on {{ article.date }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
17
vendor/scrivo/highlight.php/test/detect/dns/default.txt
vendored
Normal file
17
vendor/scrivo/highlight.php/test/detect/dns/default.txt
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
$ORIGIN example.com. ; designates the start of this zone file in the namespace
|
||||
$TTL 1h ; default expiration time of all resource records without their own TTL value
|
||||
example.com. IN SOA ns.example.com. username.example.com. ( 2007120710 1d 2h 4w 1h )
|
||||
example.com. IN NS ns ; ns.example.com is a nameserver for example.com
|
||||
example.com. IN NS ns.somewhere.example. ; ns.somewhere.example is a backup nameserver for example.com
|
||||
example.com. IN MX 10 mail.example.com. ; mail.example.com is the mailserver for example.com
|
||||
@ IN MX 20 mail2.example.com. ; equivalent to above line, "@" represents zone origin
|
||||
@ IN MX 50 mail3 ; equivalent to above line, but using a relative host name
|
||||
example.com. IN A 192.0.2.1 ; IPv4 address for example.com
|
||||
IN AAAA 2001:db8:10::1 ; IPv6 address for example.com
|
||||
ns IN A 192.0.2.2 ; IPv4 address for ns.example.com
|
||||
IN AAAA 2001:db8:10::2 ; IPv6 address for ns.example.com
|
||||
www IN CNAME example.com. ; www.example.com is an alias for example.com
|
||||
wwwtest IN CNAME www ; wwwtest.example.com is another alias for www.example.com
|
||||
mail IN A 192.0.2.3 ; IPv4 address for mail.example.com
|
||||
mail2 IN A 192.0.2.4 ; IPv4 address for mail2.example.com
|
||||
mail3 IN A 192.0.2.5 ; IPv4 address for mail3.example.com
|
||||
56
vendor/scrivo/highlight.php/test/detect/dockerfile/default.txt
vendored
Normal file
56
vendor/scrivo/highlight.php/test/detect/dockerfile/default.txt
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
# Example instructions from https://docs.docker.com/reference/builder/
|
||||
FROM ubuntu:14.04
|
||||
|
||||
MAINTAINER example@example.com
|
||||
|
||||
ENV foo /bar
|
||||
WORKDIR ${foo} # WORKDIR /bar
|
||||
ADD . $foo # ADD . /bar
|
||||
COPY \$foo /quux # COPY $foo /quux
|
||||
ARG VAR=FOO
|
||||
|
||||
RUN apt-get update && apt-get install -y software-properties-common\
|
||||
zsh curl wget git htop\
|
||||
unzip vim telnet
|
||||
RUN ["/bin/bash", "-c", "echo hello ${USER}"]
|
||||
|
||||
CMD ["executable","param1","param2"]
|
||||
CMD command param1 param2
|
||||
|
||||
EXPOSE 1337
|
||||
|
||||
ENV myName="John Doe" myDog=Rex\ The\ Dog \
|
||||
myCat=fluffy
|
||||
|
||||
ENV myName John Doe
|
||||
ENV myDog Rex The Dog
|
||||
ENV myCat fluffy
|
||||
|
||||
ADD hom* /mydir/ # adds all files starting with "hom"
|
||||
ADD hom?.txt /mydir/ # ? is replaced with any single character
|
||||
|
||||
COPY hom* /mydir/ # adds all files starting with "hom"
|
||||
COPY hom?.txt /mydir/ # ? is replaced with any single character
|
||||
COPY --from=foo / .
|
||||
|
||||
ENTRYPOINT ["executable", "param1", "param2"]
|
||||
ENTRYPOINT command param1 param2
|
||||
|
||||
VOLUME ["/data"]
|
||||
|
||||
USER daemon
|
||||
|
||||
LABEL com.example.label-with-value="foo"
|
||||
LABEL version="1.0"
|
||||
LABEL description="This text illustrates \
|
||||
that label-values can span multiple lines."
|
||||
|
||||
WORKDIR /path/to/workdir
|
||||
|
||||
ONBUILD ADD . /app/src
|
||||
|
||||
STOPSIGNAL SIGKILL
|
||||
|
||||
HEALTHCHECK --retries=3 cat /health
|
||||
|
||||
SHELL ["/bin/bash", "-c"]
|
||||
24
vendor/scrivo/highlight.php/test/detect/dos/default.txt
vendored
Normal file
24
vendor/scrivo/highlight.php/test/detect/dos/default.txt
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
cd \
|
||||
copy a b
|
||||
ping 192.168.0.1
|
||||
@rem ping 192.168.0.1
|
||||
net stop sharedaccess
|
||||
del %tmp% /f /s /q
|
||||
del %temp% /f /s /q
|
||||
ipconfig /flushdns
|
||||
taskkill /F /IM JAVA.EXE /T
|
||||
|
||||
cd Photoshop/Adobe Photoshop CS3/AMT/
|
||||
if exist application.sif (
|
||||
ren application.sif _application.sif
|
||||
) else (
|
||||
ren _application.sif application.sif
|
||||
)
|
||||
|
||||
taskkill /F /IM proquota.exe /T
|
||||
|
||||
sfc /SCANNOW
|
||||
|
||||
set path = test
|
||||
|
||||
xcopy %1\*.* %2
|
||||
22
vendor/scrivo/highlight.php/test/detect/dsconfig/default.txt
vendored
Normal file
22
vendor/scrivo/highlight.php/test/detect/dsconfig/default.txt
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
# Create client connection policies
|
||||
dsconfig create-client-connection-policy \
|
||||
--policy-name "Restrictive Client Connection Policy" \
|
||||
--set "description:Restrictive Client Connection Policy" \
|
||||
--set enabled:true --set evaluation-order-index:1000 \
|
||||
--set "connection-criteria:User.0 Connection Criteria" \
|
||||
--set maximum-concurrent-connections:2 \
|
||||
--set "maximum-connection-duration:1 s" \
|
||||
--set "maximum-idle-connection-duration:1 s" \
|
||||
--set maximum-operation-count-per-connection:1000
|
||||
create-client-connection-policy \
|
||||
--policy-name "Another Client Connection Policy" \
|
||||
--set enabled:true --set evaluation-order-index:100 \
|
||||
--set 'connection-criteria:User.1 Connection Criteria' \
|
||||
--reset maximum-concurrent-connections
|
||||
# Configure global ACIs
|
||||
dsconfig set-access-control-handler-prop \
|
||||
--add global-aci:'(target="ldap:///cn=config")(targetattr="*")(version 3.0; acl "Allow access to the config tree by cn=admin,c=us"; allow(all) groupdn="ldap:///cn=directory administrators,ou=groups,c=us";)' \
|
||||
--add global-aci:'(target="ldap:///cn=monitor")(targetattr="*")(version 3.0; acl "Allow access to the monitor tree by cn=admin,c=us"; allow(all) groupdn="ldap:///cn=directory administrators,ou=groups,c=us";)' \
|
||||
--remove global-aci:'(target="ldap:///cn=alerts")(targetattr="*")(version 3.0; acl "Allow access to the alerts tree by cn=admin,c=us"; allow(all) groupdn="ldap:///cn=directory administrators,ou=groups,c=us";)'
|
||||
# Delete error logger
|
||||
dsconfig delete-log-publisher --publisher-name "File-Based Error Logger"
|
||||
71
vendor/scrivo/highlight.php/test/detect/dts/default.txt
vendored
Normal file
71
vendor/scrivo/highlight.php/test/detect/dts/default.txt
vendored
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright (C) 2011 - 2014 Xilinx
|
||||
*
|
||||
* This software is licensed under the terms of the GNU General Public
|
||||
* License version 2, as published by the Free Software Foundation, and
|
||||
* may be copied, distributed, and modified under those terms.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
/include/ "skeleton.dtsi"
|
||||
|
||||
/ {
|
||||
compatible = "xlnx,zynq-7000";
|
||||
|
||||
pmu {
|
||||
compatible = "arm,cortex-a9-pmu";
|
||||
interrupts = <0 5 4>, <0 6 4>;
|
||||
interrupt-parent = <&intc>;
|
||||
reg = < 0xf8891000 0x1000 0xf8893000 0x1000 >;
|
||||
};
|
||||
|
||||
regulator_vccpint: fixedregulator@0 {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "VCCPINT";
|
||||
regulator-min-microvolt = <1000000>;
|
||||
regulator-max-microvolt = <1000000>;
|
||||
regulator-boot-on;
|
||||
regulator-always-on;
|
||||
};
|
||||
|
||||
amba: amba {
|
||||
compatible = "simple-bus";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
interrupt-parent = <&intc>;
|
||||
ranges;
|
||||
|
||||
adc: adc@f8007100 {
|
||||
compatible = "xlnx,zynq-xadc-1.00.a";
|
||||
reg = <0xf8007100 0x20>;
|
||||
interrupts = <0 7 4>;
|
||||
interrupt-parent = <&intc>;
|
||||
clocks = <&clkc 12>;
|
||||
};
|
||||
|
||||
i2c0: i2c@e0004000 {
|
||||
compatible = "cdns,i2c-r1p10";
|
||||
status = "disabled";
|
||||
clocks = <&clkc 38>;
|
||||
interrupt-parent = <&intc>;
|
||||
interrupts = <0 25 4>;
|
||||
reg = <0xe0004000 0x1000>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
};
|
||||
|
||||
L2: cache-controller@f8f02000 {
|
||||
compatible = "arm,pl310-cache";
|
||||
reg = <0xF8F02000 0x1000>;
|
||||
interrupts = <0 2 4>;
|
||||
arm,data-latency = <3 2 2>;
|
||||
arm,tag-latency = <2 2 2>;
|
||||
cache-unified;
|
||||
cache-level = <2>;
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
7
vendor/scrivo/highlight.php/test/detect/dust/default.txt
vendored
Normal file
7
vendor/scrivo/highlight.php/test/detect/dust/default.txt
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<h3>Hours</h3>
|
||||
|
||||
<ul>
|
||||
{#users}
|
||||
<li {hello}>{firstName}</li>{~n}
|
||||
{/users}
|
||||
</ul>
|
||||
12
vendor/scrivo/highlight.php/test/detect/ebnf/default.txt
vendored
Normal file
12
vendor/scrivo/highlight.php/test/detect/ebnf/default.txt
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
(* line comment *)
|
||||
|
||||
rule = [optional] , symbol , { letters } , ( digit | symbol ) ;
|
||||
|
||||
optional = ? something unnecessary ? ; (* trailing comment *)
|
||||
|
||||
symbol = '!' | '@' | '#' | '$' | '%' | '&' | '*' ;
|
||||
digit = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" ;
|
||||
letter = "A" | "B" | "C" | "D" | "E" | "F" | "G"
|
||||
| "H" | "I" | "J" | "K" | "L" | "M" | "N"
|
||||
| "O" | "P" | "Q" | "R" | "S" | "T" | "U"
|
||||
| "V" | "W" | "X" | "Y" | "Z" ;
|
||||
49
vendor/scrivo/highlight.php/test/detect/elixir/default.txt
vendored
Normal file
49
vendor/scrivo/highlight.php/test/detect/elixir/default.txt
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
defrecord Person, first_name: nil, last_name: "Dudington" do
|
||||
def name record do # huh ?
|
||||
"#{record.first_name} #{record.last_name}"
|
||||
end
|
||||
end
|
||||
|
||||
defrecord User, name: "José", age: 25
|
||||
|
||||
guy = Person.new first_name: "Guy"
|
||||
guy.name
|
||||
|
||||
defmodule ListServer do
|
||||
@moduledoc """
|
||||
This module provides an easy to use ListServer, useful for keeping
|
||||
lists of things.
|
||||
"""
|
||||
use GenServer.Behaviour
|
||||
alias Foo.Bar
|
||||
|
||||
### Public API
|
||||
@doc """
|
||||
Starts and links a new ListServer, returning {:ok, pid}
|
||||
|
||||
## Example
|
||||
|
||||
iex> {:ok, pid} = ListServer.start_link
|
||||
|
||||
"""
|
||||
def start_link do
|
||||
:gen_server.start_link({:local, :list}, __MODULE__, [], [])
|
||||
end
|
||||
|
||||
### GenServer API
|
||||
def init(list) do
|
||||
{:ok, list}
|
||||
end
|
||||
|
||||
# Clear the list
|
||||
def handle_cast :clear, list do
|
||||
{:noreply, []}
|
||||
end
|
||||
end
|
||||
|
||||
{:ok, pid} = ListServer.start_link
|
||||
pid <- {:foo, "bar"}
|
||||
|
||||
greeter = fn(x) -> IO.puts "hey #{x}" end
|
||||
greeter.("Bob")
|
||||
|
||||
22
vendor/scrivo/highlight.php/test/detect/elm/default.txt
vendored
Normal file
22
vendor/scrivo/highlight.php/test/detect/elm/default.txt
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
import Browser
|
||||
import Html exposing (div, button, text)
|
||||
import Html.Events exposing (onClick)
|
||||
|
||||
type Msg
|
||||
= Increment
|
||||
|
||||
main =
|
||||
Browser.sandbox
|
||||
{ init = 0
|
||||
, update = \msg model -> model + 1
|
||||
, view = view
|
||||
}
|
||||
|
||||
view model =
|
||||
div []
|
||||
[ div [] [ text (String.fromInt model) ]
|
||||
, button [ onClick Increment ] [ text "+" ]
|
||||
]
|
||||
|
||||
chars =
|
||||
String.cons 'C' <| String.cons 'h' <| "ars"
|
||||
10
vendor/scrivo/highlight.php/test/detect/erb/default.txt
vendored
Normal file
10
vendor/scrivo/highlight.php/test/detect/erb/default.txt
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
<%# this is a comment %>
|
||||
|
||||
<% @posts.each do |post| %>
|
||||
<p><%= link_to post.title, post %></p>
|
||||
<% end %>
|
||||
|
||||
<%- available_things = things.select(&:available?) -%>
|
||||
<%%- x = 1 + 2 -%%>
|
||||
<%% value = 'real string #{@value}' %%>
|
||||
<%%= available_things.inspect %%>
|
||||
27
vendor/scrivo/highlight.php/test/detect/erlang-repl/default.txt
vendored
Normal file
27
vendor/scrivo/highlight.php/test/detect/erlang-repl/default.txt
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
1> Str = "abcd".
|
||||
"abcd"
|
||||
2> L = test:length(Str).
|
||||
4
|
||||
3> Descriptor = {L, list_to_atom(Str)}.
|
||||
{4,abcd}
|
||||
4> L.
|
||||
4
|
||||
5> b().
|
||||
Descriptor = {4,abcd}
|
||||
L = 4
|
||||
Str = "abcd"
|
||||
ok
|
||||
6> f(L).
|
||||
ok
|
||||
7> b().
|
||||
Descriptor = {4,abcd}
|
||||
Str = "abcd"
|
||||
ok
|
||||
8> {L, _} = Descriptor.
|
||||
{4,abcd}
|
||||
9> L.
|
||||
4
|
||||
10> 2#101.
|
||||
5
|
||||
11> 1.85e+3.
|
||||
1850
|
||||
60
vendor/scrivo/highlight.php/test/detect/erlang/default.txt
vendored
Normal file
60
vendor/scrivo/highlight.php/test/detect/erlang/default.txt
vendored
Normal file
@@ -0,0 +1,60 @@
|
||||
-module(ssh_cli).
|
||||
|
||||
-behaviour(ssh_channel).
|
||||
|
||||
-include("ssh.hrl").
|
||||
%% backwards compatibility
|
||||
-export([listen/1, listen/2, listen/3, listen/4, stop/1]).
|
||||
|
||||
if L =/= [] -> % If L is not empty
|
||||
sum(L) / count(L);
|
||||
true ->
|
||||
error
|
||||
end.
|
||||
|
||||
%% state
|
||||
-record(state, {
|
||||
cm,
|
||||
channel
|
||||
}).
|
||||
|
||||
-spec foo(integer()) -> integer().
|
||||
foo(X) -> 1 + X.
|
||||
|
||||
test(Foo)->Foo.
|
||||
|
||||
init([Shell, Exec]) ->
|
||||
{ok, #state{shell = Shell, exec = Exec}};
|
||||
init([Shell]) ->
|
||||
false = not true,
|
||||
io:format("Hello, \"~p!~n", [atom_to_list('World')]),
|
||||
{ok, #state{shell = Shell}}.
|
||||
|
||||
concat([Single]) -> Single;
|
||||
concat(RList) ->
|
||||
EpsilonFree = lists:filter(
|
||||
fun (Element) ->
|
||||
case Element of
|
||||
epsilon -> false;
|
||||
_ -> true
|
||||
end
|
||||
end,
|
||||
RList),
|
||||
case EpsilonFree of
|
||||
[Single] -> Single;
|
||||
Other -> {concat, Other}
|
||||
end.
|
||||
|
||||
union_dot_union({union, _}=U1, {union, _}=U2) ->
|
||||
union(lists:flatten(
|
||||
lists:map(
|
||||
fun (X1) ->
|
||||
lists:map(
|
||||
fun (X2) ->
|
||||
concat([X1, X2])
|
||||
end,
|
||||
union_to_list(U2)
|
||||
)
|
||||
end,
|
||||
union_to_list(U1)
|
||||
))).
|
||||
1
vendor/scrivo/highlight.php/test/detect/excel/default.txt
vendored
Normal file
1
vendor/scrivo/highlight.php/test/detect/excel/default.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
=IF(C10 <= 275.5, "Unprofitable", "Profitable")
|
||||
4
vendor/scrivo/highlight.php/test/detect/fix/default.txt
vendored
Normal file
4
vendor/scrivo/highlight.php/test/detect/fix/default.txt
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
8=FIX.4.2␁9=0␁35=8␁49=SENDERTEST␁56=TARGETTEST␁34=00000001526␁52=20120429-13:30:08.137␁1=ABC12345␁11=2012abc1234␁14=100␁17=201254321␁20=0␁30=NYSE␁31=108.20␁32=100␁38=100␁39=2␁40=1␁47=A␁54=5␁55=BRK␁59=2␁60=20120429-13:30:08.000␁65=B␁76=BROKER␁84=0␁100=NYSE␁111=100␁150=2␁151=0␁167=CS␁377=N␁10000=SampleCustomTag␁10=123␁
|
||||
|
||||
8=FIX.4.29=035=849=SENDERTEST56=TARGETTEST34=0000000152652=20120429-13:30:08.1371=ABC1234511=2012abc123414=10017=20125432120=030=NYSE31=108.2032=10038=10039=240=147=A54=555=BRK59=260=20120429-13:30:08.00065=B76=BROKER84=0100=NYSE111=100150=2151=0167=CS377=N10000=SampleCustomTag10=123
|
||||
|
||||
49
vendor/scrivo/highlight.php/test/detect/flix/default.txt
vendored
Normal file
49
vendor/scrivo/highlight.php/test/detect/flix/default.txt
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
/**
|
||||
* An example of Flix for syntax highlighting.
|
||||
*/
|
||||
|
||||
// Here is a namespace.
|
||||
namespace a.b.c {
|
||||
|
||||
// Here are some literals.
|
||||
def b: Bool = true
|
||||
def c: Char = 'a'
|
||||
def f: Float = 1.23
|
||||
def i: Int = 42
|
||||
def s: Str = "string"
|
||||
|
||||
// Here are some relations.
|
||||
rel LitStm(r: Str, c: Int)
|
||||
rel AddStm(r: Str, x: Str, y: Str)
|
||||
rel DivStm(r: Str, x: Str, y: Str)
|
||||
|
||||
// Here is a lattice.
|
||||
lat LocalVar(k: Str, v: Constant)
|
||||
|
||||
// Here is an index.
|
||||
index LitStm{{r}, {r, c}}
|
||||
|
||||
// Here is an enum.
|
||||
enum Constant {
|
||||
case Top,
|
||||
|
||||
case Cst(Int),
|
||||
|
||||
case Bot
|
||||
}
|
||||
|
||||
// Here is a function.
|
||||
def leq(e1: Constant, e2: Constant): Bool = match (e1, e2) with {
|
||||
case (Constant.Bot, _) => true
|
||||
case (Constant.Cst(n1), Constant.Cst(n2)) => n1 == n2
|
||||
case (_, Constant.Top) => true
|
||||
case _ => false
|
||||
}
|
||||
|
||||
// Here are some rules.
|
||||
LocalVar(r, alpha(c)) :- LitStm(r, c).
|
||||
|
||||
LocalVar(r, sum(v1, v2)) :- AddStm(r, x, y),
|
||||
LocalVar(x, v1),
|
||||
LocalVar(y, v2).
|
||||
}
|
||||
22
vendor/scrivo/highlight.php/test/detect/fortran/default.txt
vendored
Normal file
22
vendor/scrivo/highlight.php/test/detect/fortran/default.txt
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
subroutine test_sub(k)
|
||||
implicit none
|
||||
|
||||
!===============================
|
||||
! This is a test subroutine
|
||||
!===============================
|
||||
|
||||
integer, intent(in) :: k
|
||||
double precision, allocatable :: a(:)
|
||||
integer, parameter :: nmax=10
|
||||
integer :: i
|
||||
|
||||
allocate (a(nmax))
|
||||
|
||||
do i=1,nmax
|
||||
a(i) = dble(i)*5.d0
|
||||
enddo
|
||||
|
||||
print *, 'Hello world'
|
||||
write (*,*) a(:)
|
||||
|
||||
end subroutine test_sub
|
||||
48
vendor/scrivo/highlight.php/test/detect/fsharp/default.txt
vendored
Normal file
48
vendor/scrivo/highlight.php/test/detect/fsharp/default.txt
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
open System
|
||||
|
||||
// Single line comment...
|
||||
(*
|
||||
This is a
|
||||
multiline comment.
|
||||
*)
|
||||
let checkList alist =
|
||||
match alist with
|
||||
| [] -> 0
|
||||
| [a] -> 1
|
||||
| [a; b] -> 2
|
||||
| [a; b; c] -> 3
|
||||
| _ -> failwith "List is too big!"
|
||||
|
||||
|
||||
let text = "Some text..."
|
||||
let text2 = @"A ""verbatim"" string..."
|
||||
let catalog = """
|
||||
Some "long" string...
|
||||
"""
|
||||
|
||||
let rec fib x = if x <= 2 then 1 else fib(x-1) + fib(x-2)
|
||||
|
||||
let fibs =
|
||||
Async.Parallel [ for i in 0..40 -> async { return fib(i) } ]
|
||||
|> Async.RunSynchronously
|
||||
|
||||
type Sprocket(gears) =
|
||||
member this.Gears : int = gears
|
||||
|
||||
[<AbstractClass>]
|
||||
type Animal =
|
||||
abstract Speak : unit -> unit
|
||||
|
||||
type Widget =
|
||||
| RedWidget
|
||||
| GreenWidget
|
||||
|
||||
type Point = {X: float; Y: float;}
|
||||
|
||||
[<Measure>]
|
||||
type s
|
||||
let minutte = 60<s>
|
||||
|
||||
type DefaultMailbox<'a>() =
|
||||
let mutable inbox = ConcurrentQueue<'a>()
|
||||
let awaitMsg = new AutoResetEvent(false)
|
||||
31
vendor/scrivo/highlight.php/test/detect/gams/default.txt
vendored
Normal file
31
vendor/scrivo/highlight.php/test/detect/gams/default.txt
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
SETS
|
||||
I canning plants / SEATTLE, SAN-DIEGO /
|
||||
J markets / NEW-YORK, CHICAGO, TOPEKA / ;
|
||||
PARAMETERS
|
||||
A(I) capacity of plant i in cases
|
||||
/ SEATTLE 350
|
||||
SAN-DIEGO 600 /
|
||||
B(J) demand at market j in cases
|
||||
/ NEW-YORK 325
|
||||
CHICAGO 300
|
||||
TOPEKA 275 / ;
|
||||
TABLE D(I,J) distance in thousands of miles
|
||||
NEW-YORK CHICAGO TOPEKA
|
||||
SEATTLE 2.5 1.7 1.8
|
||||
SAN-DIEGO 2.5 1.8 1.4 ;
|
||||
SCALAR F freight in dollars per case per thousand miles /90/ ;
|
||||
PARAMETER C(I,J) transport cost in thousands of dollars per case ;
|
||||
C(I,J) = F * D(I,J) / 1000 ;
|
||||
VARIABLES
|
||||
X(I,J) shipment quantities in cases
|
||||
Z total transportation costs in thousands of dollars ;
|
||||
POSITIVE VARIABLE X ;
|
||||
EQUATIONS
|
||||
COST define objective function
|
||||
SUPPLY(I) observe supply limit at plant i
|
||||
DEMAND(J) satisfy demand at market j ;
|
||||
COST .. Z =E= SUM((I,J), C(I,J)*X(I,J)) ;
|
||||
SUPPLY(I) .. SUM(J, X(I,J)) =L= A(I) ;
|
||||
DEMAND(J) .. SUM(I, X(I,J)) =G= B(J) ;
|
||||
MODEL TRANSPORT /ALL/ ;
|
||||
SOLVE TRANSPORT USING LP MINIMIZING Z ;
|
||||
28
vendor/scrivo/highlight.php/test/detect/gauss/default.txt
vendored
Normal file
28
vendor/scrivo/highlight.php/test/detect/gauss/default.txt
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
// This is a test
|
||||
#include pv.sdf
|
||||
|
||||
proc (1) = calc(local__row, fin);
|
||||
if local__row;
|
||||
nr = local__row;
|
||||
else;
|
||||
k = colsf(fin);
|
||||
nr = floor(minc(maxbytes/(k*8*3.5)|maxvec/(k+1)));
|
||||
endif;
|
||||
retp(nr);
|
||||
endp;
|
||||
|
||||
s = "{% test string %}";
|
||||
|
||||
fn twopi=pi*2;
|
||||
|
||||
/* Takes in multiple numbers.
|
||||
Output sum */
|
||||
keyword add(str);
|
||||
local tok,sum;
|
||||
sum = 0;
|
||||
do until str $== "";
|
||||
{ tok, str } = token(str);
|
||||
sum = sum + stof(tok);
|
||||
endo;
|
||||
print "Sum is: " sum;
|
||||
endp;
|
||||
31
vendor/scrivo/highlight.php/test/detect/gcode/default.txt
vendored
Normal file
31
vendor/scrivo/highlight.php/test/detect/gcode/default.txt
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
O003 (DIAMOND SQUARE)
|
||||
N2 G54 G90 G49 G80
|
||||
N3 M6 T1 (1.ENDMILL)
|
||||
N4 M3 S1800
|
||||
N5 G0 X-.6 Y2.050
|
||||
N6 G43 H1 Z.1
|
||||
N7 G1 Z-.3 F50.
|
||||
N8 G41 D1 Y1.45
|
||||
N9 G1 X0 F20.
|
||||
N10 G2 J-1.45
|
||||
(CUTTER COMP CANCEL)
|
||||
N11 G1 Z-.2 F50.
|
||||
N12 Y-.990
|
||||
N13 G40
|
||||
N14 G0 X-.6 Y1.590
|
||||
N15 G0 Z.1
|
||||
N16 M5 G49 G28 G91 Z0
|
||||
N17 CALL O9456
|
||||
N18 #500=0.004
|
||||
N19 #503=[#500+#501]
|
||||
N20 VC45=0.0006
|
||||
VS4=0.0007
|
||||
N21 G90 G10 L20 P3 X5.Y4. Z6.567
|
||||
N22 G0 X5000
|
||||
N23 IF [#1 LT 0.370] GOTO 49
|
||||
N24 X-0.678 Y+.990
|
||||
N25 G84.3 X-0.1
|
||||
N26 #4=#5*COS[45]
|
||||
N27 #4=#5*SIN[45]
|
||||
N28 VZOFZ=652.9658
|
||||
%
|
||||
25
vendor/scrivo/highlight.php/test/detect/gherkin/default.txt
vendored
Normal file
25
vendor/scrivo/highlight.php/test/detect/gherkin/default.txt
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
# language: en
|
||||
Feature: Addition
|
||||
In order to avoid silly mistakes
|
||||
As a math idiot
|
||||
I want to be told the sum of two numbers
|
||||
|
||||
@this_is_a_tag
|
||||
Scenario Outline: Add two numbers
|
||||
* I have a calculator
|
||||
Given I have entered <input_1> into the calculator
|
||||
And I have entered <input_2> into the calculator
|
||||
When I press <button>
|
||||
Then the result should be <output> on the screen
|
||||
And I have a string like
|
||||
"""
|
||||
Here is
|
||||
some
|
||||
multiline text
|
||||
"""
|
||||
|
||||
Examples:
|
||||
| input_1 | input_2 | button | output |
|
||||
| 20 | 30 | add | 50 |
|
||||
| 2 | 5 | add | 7 |
|
||||
| 0 | 40 | add | 40 |
|
||||
37
vendor/scrivo/highlight.php/test/detect/glsl/default.txt
vendored
Normal file
37
vendor/scrivo/highlight.php/test/detect/glsl/default.txt
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
// vertex shader
|
||||
#version 150
|
||||
in vec2 in_Position;
|
||||
in vec3 in_Color;
|
||||
|
||||
out vec3 ex_Color;
|
||||
void main(void) {
|
||||
gl_Position = vec4(in_Position.x, in_Position.y, 0.0, 1.0);
|
||||
ex_Color = in_Color;
|
||||
}
|
||||
|
||||
|
||||
// geometry shader
|
||||
#version 150
|
||||
|
||||
layout(triangles) in;
|
||||
layout(triangle_strip, max_vertices = 3) out;
|
||||
|
||||
void main() {
|
||||
for(int i = 0; i < gl_in.length(); i++) {
|
||||
gl_Position = gl_in[i].gl_Position;
|
||||
EmitVertex();
|
||||
}
|
||||
EndPrimitive();
|
||||
}
|
||||
|
||||
|
||||
// fragment shader
|
||||
#version 150
|
||||
precision highp float;
|
||||
|
||||
in vec3 ex_Color;
|
||||
out vec4 gl_FragColor;
|
||||
|
||||
void main(void) {
|
||||
gl_FragColor = vec4(ex_Color, 1.0);
|
||||
}
|
||||
22
vendor/scrivo/highlight.php/test/detect/gml/default.txt
vendored
Normal file
22
vendor/scrivo/highlight.php/test/detect/gml/default.txt
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
/// @description Collision code
|
||||
// standard collision handling
|
||||
|
||||
// Horizontal collisions
|
||||
if(place_meeting(x+hspd, y, obj_wall)) {
|
||||
while(!place_meeting(x+sign(hspd), y, obj_wall)) {
|
||||
x += sign(hspd);
|
||||
}
|
||||
hspd = 0;
|
||||
}
|
||||
x += hspd;
|
||||
|
||||
// Vertical collisions
|
||||
if(place_meeting(x, y+vspd, collide_obj)) {
|
||||
while(!place_meeting(x, y+sign(vspd), collide_obj)) {
|
||||
y += sign(vspd);
|
||||
}
|
||||
vspd = 0;
|
||||
}
|
||||
y += vspd;
|
||||
|
||||
show_debug_message("This is a test");
|
||||
12
vendor/scrivo/highlight.php/test/detect/go/default.txt
vendored
Normal file
12
vendor/scrivo/highlight.php/test/detect/go/default.txt
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func main() {
|
||||
ch := make(chan float64)
|
||||
ch <- 1.0e10 // magic number
|
||||
x, ok := <- ch
|
||||
defer fmt.Println(`exitting now\`)
|
||||
go println(len("hello world!"))
|
||||
return
|
||||
}
|
||||
15
vendor/scrivo/highlight.php/test/detect/go/swift-like.txt
vendored
Normal file
15
vendor/scrivo/highlight.php/test/detect/go/swift-like.txt
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
func makeRequest(method string, url string, cb func(error, io.ReadCloser)) {
|
||||
req, _ := http.NewRequest(method, url, nil)
|
||||
resp, err := http.DefaultClient.Do(req)
|
||||
if err != nil {
|
||||
cb(err, nil)
|
||||
} else {
|
||||
cb(err, resp.Body)
|
||||
}
|
||||
}
|
||||
func main() {
|
||||
makeRequest("GET", "http://ipinfo.io/json", func(err error, body io.ReadCloser) {
|
||||
defer body.Close()
|
||||
io.Copy(os.Stdout, body)
|
||||
})
|
||||
}
|
||||
15
vendor/scrivo/highlight.php/test/detect/golo/default.txt
vendored
Normal file
15
vendor/scrivo/highlight.php/test/detect/golo/default.txt
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
module hello
|
||||
|
||||
function dyno = -> DynamicObject()
|
||||
|
||||
struct human = { name }
|
||||
|
||||
@annotated
|
||||
function main = |args| {
|
||||
let a = 1
|
||||
var b = 2
|
||||
|
||||
println("hello")
|
||||
|
||||
let john = human("John Doe")
|
||||
}
|
||||
62
vendor/scrivo/highlight.php/test/detect/gradle/default.txt
vendored
Normal file
62
vendor/scrivo/highlight.php/test/detect/gradle/default.txt
vendored
Normal file
@@ -0,0 +1,62 @@
|
||||
|
||||
apply plugin: 'android'
|
||||
|
||||
android {
|
||||
compileSdkVersion 19
|
||||
buildToolsVersion "19.1"
|
||||
|
||||
defaultConfig {
|
||||
minSdkVersion 15
|
||||
targetSdkVersion 19
|
||||
versionCode 5
|
||||
versionName "0.4.4"
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_7
|
||||
targetCompatibility JavaVersion.VERSION_1_7
|
||||
}
|
||||
signingConfigs {
|
||||
release
|
||||
}
|
||||
buildTypes {
|
||||
release {
|
||||
// runProguard true
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
|
||||
signingConfig signingConfigs.release
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile fileTree(dir: 'libs', include: ['*.jar'])
|
||||
|
||||
compile 'com.example:example-lib:1.0.0'
|
||||
}
|
||||
|
||||
|
||||
def propFile = file('../signing.properties')
|
||||
if( propFile.canRead() ) {
|
||||
def Properties p = new Properties()
|
||||
p.load(new FileInputStream(propFile))
|
||||
|
||||
if( p!=null
|
||||
&& p.containsKey("STORE_FILE")
|
||||
&& p.containsKey('STORE_PASSWORD')
|
||||
&& p.containsKey('KEY_ALIAS')
|
||||
&& p.containsKey('KEY_PASSWORD')
|
||||
) {
|
||||
println "RELEASE_BUILD: Signing..."
|
||||
|
||||
android.signingConfigs.release.storeFile = file( p['STORE_FILE'] )
|
||||
android.signingConfigs.release.storePassword = p['STORE_PASSWORD']
|
||||
android.signingConfigs.release.keyAlias = p['KEY_ALIAS']
|
||||
android.signingConfigs.release.keyPassword = p['KEY_PASSWORD']
|
||||
} else {
|
||||
println "RELEASE_BUILD: Required properties in signing.properties are missing"
|
||||
android.buildTypes.release.signingConfig = null
|
||||
}
|
||||
} else {
|
||||
println "RELEASE_BUILD: signing.properties not found"
|
||||
android.buildTypes.release.signingProperties = null
|
||||
}
|
||||
56
vendor/scrivo/highlight.php/test/detect/groovy/default.txt
vendored
Normal file
56
vendor/scrivo/highlight.php/test/detect/groovy/default.txt
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
#!/usr/bin/env groovy
|
||||
package model
|
||||
|
||||
import groovy.transform.CompileStatic
|
||||
import java.util.List as MyList
|
||||
|
||||
trait Distributable {
|
||||
void distribute(String version) {}
|
||||
}
|
||||
|
||||
@CompileStatic
|
||||
class Distribution implements Distributable {
|
||||
double number = 1234.234 / 567
|
||||
def otherNumber = 3 / 4
|
||||
boolean archivable = condition ?: true
|
||||
def ternary = a ? b : c
|
||||
String name = "Guillaume"
|
||||
Closure description = null
|
||||
List<DownloadPackage> packages = []
|
||||
String regex = ~/.*foo.*/
|
||||
String multi = '''
|
||||
multi line string
|
||||
''' + """
|
||||
now with double quotes and ${gstring}
|
||||
""" + $/
|
||||
even with dollar slashy strings
|
||||
/$
|
||||
|
||||
/**
|
||||
* description method
|
||||
* @param cl the closure
|
||||
*/
|
||||
void description(Closure cl) { this.description = cl }
|
||||
|
||||
void version(String name, Closure versionSpec) {
|
||||
def closure = { println "hi" } as Runnable
|
||||
|
||||
MyList ml = [1, 2, [a: 1, b:2,c :3]]
|
||||
for (ch in "name") {}
|
||||
|
||||
// single line comment
|
||||
DownloadPackage pkg = new DownloadPackage(version: name)
|
||||
|
||||
check that: true
|
||||
|
||||
label:
|
||||
def clone = versionSpec.rehydrate(pkg, pkg, pkg)
|
||||
/*
|
||||
now clone() in a multiline comment
|
||||
*/
|
||||
clone()
|
||||
packages.add(pkg)
|
||||
|
||||
assert 4 / 2 == 2
|
||||
}
|
||||
}
|
||||
14
vendor/scrivo/highlight.php/test/detect/haml/default.txt
vendored
Normal file
14
vendor/scrivo/highlight.php/test/detect/haml/default.txt
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
!!! XML
|
||||
%html
|
||||
%body
|
||||
%h1.jumbo{:id=>"a", :style=>'font-weight: normal', :title=>title} highlight.js
|
||||
/html comment
|
||||
-# ignore this line
|
||||
%ul(style='margin: 0')
|
||||
-items.each do |i|
|
||||
%i= i
|
||||
= variable
|
||||
=variable2
|
||||
~ variable3
|
||||
~variable4
|
||||
The current year is #{DataTime.now.year}.
|
||||
6
vendor/scrivo/highlight.php/test/detect/handlebars/default.txt
vendored
Normal file
6
vendor/scrivo/highlight.php/test/detect/handlebars/default.txt
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<div class="entry">
|
||||
{{!-- only show if author exists --}}
|
||||
{{#if author}}
|
||||
<h1>{{firstName}} {{lastName}}</h1>
|
||||
{{/if}}
|
||||
</div>
|
||||
38
vendor/scrivo/highlight.php/test/detect/haskell/default.txt
vendored
Normal file
38
vendor/scrivo/highlight.php/test/detect/haskell/default.txt
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
{-# LANGUAGE TypeSynonymInstances #-}
|
||||
module Network.UDP
|
||||
( DataPacket(..)
|
||||
, openBoundUDPPort
|
||||
, openListeningUDPPort
|
||||
, pingUDPPort
|
||||
, sendUDPPacketTo
|
||||
, recvUDPPacket
|
||||
, recvUDPPacketFrom
|
||||
) where
|
||||
|
||||
import qualified Data.ByteString as Strict (ByteString, concat, singleton)
|
||||
import qualified Data.ByteString.Lazy as Lazy (ByteString, toChunks, fromChunks)
|
||||
import Data.ByteString.Char8 (pack, unpack)
|
||||
import Network.Socket hiding (sendTo, recv, recvFrom)
|
||||
import Network.Socket.ByteString (sendTo, recv, recvFrom)
|
||||
|
||||
-- Type class for converting StringLike types to and from strict ByteStrings
|
||||
class DataPacket a where
|
||||
toStrictBS :: a -> Strict.ByteString
|
||||
fromStrictBS :: Strict.ByteString -> a
|
||||
|
||||
instance DataPacket Strict.ByteString where
|
||||
toStrictBS = id
|
||||
{-# INLINE toStrictBS #-}
|
||||
fromStrictBS = id
|
||||
{-# INLINE fromStrictBS #-}
|
||||
|
||||
openBoundUDPPort :: String -> Int -> IO Socket
|
||||
openBoundUDPPort uri port = do
|
||||
s <- getUDPSocket
|
||||
bindAddr <- inet_addr uri
|
||||
let a = SockAddrInet (toEnum port) bindAddr
|
||||
bindSocket s a
|
||||
return s
|
||||
|
||||
pingUDPPort :: Socket -> SockAddr -> IO ()
|
||||
pingUDPPort s a = sendTo s (Strict.singleton 0) a >> return ()
|
||||
142
vendor/scrivo/highlight.php/test/detect/haxe/default.txt
vendored
Normal file
142
vendor/scrivo/highlight.php/test/detect/haxe/default.txt
vendored
Normal file
@@ -0,0 +1,142 @@
|
||||
package my.package;
|
||||
|
||||
#if js
|
||||
import js.Browser;
|
||||
#elseif sys
|
||||
import Sys;
|
||||
#else
|
||||
import Date;
|
||||
#end
|
||||
|
||||
import Lambda;
|
||||
using Main.IntExtender;
|
||||
|
||||
extern class Math {
|
||||
static var PI(default,null) : Float;
|
||||
static function floor(v:Float):Int;
|
||||
}
|
||||
|
||||
/**
|
||||
* Abstract forwarding
|
||||
*/
|
||||
abstract MyAbstract(Int) from Int to Int {
|
||||
inline function new(i:Int) {
|
||||
this = i;
|
||||
}
|
||||
|
||||
@:op(A * B)
|
||||
public function multiply(rhs:MyAbstract) {
|
||||
return this * rhs;
|
||||
}
|
||||
}
|
||||
|
||||
// an enum
|
||||
enum Color {
|
||||
Red;
|
||||
Green;
|
||||
Blue;
|
||||
Rgb(r:Int, g:Int, b:Int);
|
||||
}
|
||||
|
||||
@:generic
|
||||
class Gen<T> {
|
||||
var v:T;
|
||||
public function new(v:T) {
|
||||
this.v = v;
|
||||
}
|
||||
|
||||
public var x(get, set):T;
|
||||
|
||||
private inline function get_x():T
|
||||
return v;
|
||||
|
||||
private inline function set_x(x:T):T
|
||||
return v = x;
|
||||
}
|
||||
|
||||
class Main extends BaseClass implements SomeFunctionality {
|
||||
var callback:Void->Void = null;
|
||||
var myArray:Array<Float> = new Array<Float>();
|
||||
var arr = [4,8,0,3,9,1,5,2,6,7];
|
||||
|
||||
public function new(x) {
|
||||
super(x);
|
||||
}
|
||||
|
||||
public static function main() {
|
||||
trace('What\'s up?');
|
||||
trace('Hi, ${name}!');
|
||||
|
||||
// switch statements!
|
||||
var c:Color = Color.Green;
|
||||
var x:Int = switch(c) {
|
||||
case Red: 0;
|
||||
case Green: 1;
|
||||
case Blue: 2;
|
||||
case Rgb(r, g, b): 3;
|
||||
case _: -1;
|
||||
}
|
||||
|
||||
for(i in 0...3) {
|
||||
trace(i);
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
|
||||
do {
|
||||
trace("Hey-o!");
|
||||
} while(false);
|
||||
|
||||
var done:Bool = false;
|
||||
while(!done) {
|
||||
done = true;
|
||||
}
|
||||
|
||||
var H:Int = cast new MyAbstract(42);
|
||||
var h:Int = cast(new MyAbstract(31), Int);
|
||||
|
||||
try {
|
||||
throw "error";
|
||||
}
|
||||
catch(err:String) {
|
||||
trace(err);
|
||||
}
|
||||
|
||||
var map = new haxe.ds.IntMap<String>();
|
||||
var f = map.set.bind(_, "12");
|
||||
}
|
||||
|
||||
function nothing():Void
|
||||
trace("nothing!");
|
||||
|
||||
private inline function func(a:Int, b:Float, ?c:String, d:Bool=false):Dynamic {
|
||||
return {
|
||||
x: 0,
|
||||
y: true,
|
||||
z: false,
|
||||
a: 1.53,
|
||||
b: 5e10,
|
||||
c: -12,
|
||||
h: null
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
override function quicksort( lo : Int, hi : Int ) : Void {
|
||||
var i = lo;
|
||||
var j = hi;
|
||||
var buf = arr;
|
||||
var p = buf[(lo+hi)>>1];
|
||||
while( i <= j ) {
|
||||
while( arr[i] > p ) i++;
|
||||
while( arr[j] < p ) j--;
|
||||
if( i <= j ) {
|
||||
var t = buf[i];
|
||||
buf[i++] = buf[j];
|
||||
buf[j--] = t;
|
||||
}
|
||||
}
|
||||
if( lo < j ) quicksort( lo, j );
|
||||
if( i < hi ) quicksort( i, hi );
|
||||
}
|
||||
}
|
||||
23
vendor/scrivo/highlight.php/test/detect/hsp/default.txt
vendored
Normal file
23
vendor/scrivo/highlight.php/test/detect/hsp/default.txt
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
#include "foo.hsp"
|
||||
|
||||
// line comment
|
||||
message = "Hello, World!"
|
||||
message2 = {"Multi
|
||||
line
|
||||
string"}
|
||||
num = 0
|
||||
mes message
|
||||
|
||||
input num : button "sqrt", *label
|
||||
stop
|
||||
|
||||
*label
|
||||
/*
|
||||
block comment
|
||||
*/
|
||||
if(num >= 0) {
|
||||
dialog "sqrt(" + num + ") = " + sqrt(num)
|
||||
} else {
|
||||
dialog "error", 1
|
||||
}
|
||||
stop
|
||||
9
vendor/scrivo/highlight.php/test/detect/htmlbars/default.txt
vendored
Normal file
9
vendor/scrivo/highlight.php/test/detect/htmlbars/default.txt
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<div class="entry">
|
||||
{{!-- only output this author names if an author exists --}}
|
||||
{{#if author}}
|
||||
{{#playwright-wrapper playwright=author action=(mut author) as |playwright|}}
|
||||
<h1>{{playwright.firstName}} {{playwright.lastName}}</h1>
|
||||
{{/playwright-wrapper}}
|
||||
{{/if}}
|
||||
{{yield}}
|
||||
</div>
|
||||
13
vendor/scrivo/highlight.php/test/detect/http/default.txt
vendored
Normal file
13
vendor/scrivo/highlight.php/test/detect/http/default.txt
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
POST /task?id=1 HTTP/1.1
|
||||
Host: example.org
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Content-Length: 137
|
||||
|
||||
{
|
||||
"status": "ok",
|
||||
"extended": true,
|
||||
"results": [
|
||||
{"value": 0, "type": "int64"},
|
||||
{"value": 1.0e+3, "type": "decimal"}
|
||||
]
|
||||
}
|
||||
37
vendor/scrivo/highlight.php/test/detect/hy/default.txt
vendored
Normal file
37
vendor/scrivo/highlight.php/test/detect/hy/default.txt
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
#!/usr/bin/env hy
|
||||
|
||||
(import os.path)
|
||||
|
||||
(import hy.compiler)
|
||||
(import hy.core)
|
||||
|
||||
|
||||
;; absolute path for Hy core
|
||||
(setv *core-path* (os.path.dirname hy.core.--file--))
|
||||
|
||||
|
||||
(defn collect-macros [collected-names opened-file]
|
||||
(while True
|
||||
(try
|
||||
(let [data (read opened-file)]
|
||||
(if (and (in (first data)
|
||||
'(defmacro defmacro/g! defn))
|
||||
(not (.startswith (second data) "_")))
|
||||
(.add collected-names (second data))))
|
||||
(except [e EOFError] (break)))))
|
||||
|
||||
|
||||
(defmacro core-file [filename]
|
||||
`(open (os.path.join *core-path* ~filename)))
|
||||
|
||||
|
||||
(defmacro contrib-file [filename]
|
||||
`(open (os.path.join *core-path* ".." "contrib" ~filename)))
|
||||
|
||||
|
||||
(defn collect-core-names []
|
||||
(doto (set)
|
||||
(.update hy.core.language.*exports*)
|
||||
(.update hy.core.shadow.*exports*)
|
||||
(collect-macros (core-file "macros.hy"))
|
||||
(collect-macros (core-file "bootstrap.hy"))))
|
||||
24
vendor/scrivo/highlight.php/test/detect/inform7/default.txt
vendored
Normal file
24
vendor/scrivo/highlight.php/test/detect/inform7/default.txt
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
Book 1 - Language Definition Testing File
|
||||
|
||||
[Comments in Inform 7 can be [nested] inside one another]
|
||||
|
||||
Syntax highlighting is an action applying to one thing.
|
||||
Understand "highlight [something preferably codeish]" as syntax highlighting.
|
||||
|
||||
Code is a kind of thing. Code is usually plural-named.
|
||||
|
||||
Code can be highlighted. Code is usually not highlighted.
|
||||
|
||||
Check syntax highlighting:
|
||||
unless the noun is code:
|
||||
say "[The noun] isn't source code you can highlight.";
|
||||
rule fails.
|
||||
|
||||
Carry out syntax highlighting:
|
||||
now the noun is highlighted.
|
||||
|
||||
Table of Programming Languages
|
||||
language utility
|
||||
ruby "Web back-end development"
|
||||
lua "Embedded scripting"
|
||||
erlang "High-concurrency server applications"
|
||||
12
vendor/scrivo/highlight.php/test/detect/ini/default.txt
vendored
Normal file
12
vendor/scrivo/highlight.php/test/detect/ini/default.txt
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
; boilerplate
|
||||
[package]
|
||||
name = "some_name"
|
||||
authors = ["Author"]
|
||||
description = "This is \
|
||||
a description"
|
||||
|
||||
[[lib]]
|
||||
name = ${NAME}
|
||||
default = True
|
||||
auto = no
|
||||
counter = 1_000
|
||||
37
vendor/scrivo/highlight.php/test/detect/irpf90/default.txt
vendored
Normal file
37
vendor/scrivo/highlight.php/test/detect/irpf90/default.txt
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
BEGIN_PROVIDER [ integer(bit_kind), psi_det_sorted_bit, (N_int,2,psi_det_size) ]
|
||||
&BEGIN_PROVIDER [ double precision, psi_coef_sorted_bit, (psi_det_size,N_states) ]
|
||||
implicit none
|
||||
BEGIN_DOC
|
||||
! Determinants on which we apply <i|H|psi> for perturbation.
|
||||
! They are sorted by determinants interpreted as integers. Useful
|
||||
! to accelerate the search of a random determinant in the wave
|
||||
! function.
|
||||
END_DOC
|
||||
integer :: i,j,k
|
||||
integer, allocatable :: iorder(:)
|
||||
integer*8, allocatable :: bit_tmp(:)
|
||||
integer*8, external :: det_search_key
|
||||
|
||||
allocate ( iorder(N_det), bit_tmp(N_det) )
|
||||
|
||||
do i=1,N_det
|
||||
iorder(i) = i
|
||||
!DIR$ FORCEINLINE
|
||||
bit_tmp(i) = det_search_key(psi_det(1,1,i),N_int)
|
||||
enddo
|
||||
call isort(bit_tmp,iorder,N_det)
|
||||
!DIR$ IVDEP
|
||||
do i=1,N_det
|
||||
do j=1,N_int
|
||||
psi_det_sorted_bit(j,1,i) = psi_det(j,1,iorder(i))
|
||||
psi_det_sorted_bit(j,2,i) = psi_det(j,2,iorder(i))
|
||||
enddo
|
||||
do k=1,N_states
|
||||
psi_coef_sorted_bit(i,k) = psi_coef(iorder(i),k)
|
||||
enddo
|
||||
enddo
|
||||
|
||||
deallocate(iorder, bit_tmp)
|
||||
|
||||
END_PROVIDER
|
||||
|
||||
27
vendor/scrivo/highlight.php/test/detect/isbl/default.txt
vendored
Normal file
27
vendor/scrivo/highlight.php/test/detect/isbl/default.txt
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
// Описание констант
|
||||
ADD_EQUAL_NUMBER_TEMPLATE = "%s.%s = %s"
|
||||
EMPLOYEES_REFERENCE = "РАБ"
|
||||
/*********************************************
|
||||
* Получить список кодов или ИД работников, *
|
||||
* соответствующих текущему пользователю *
|
||||
*********************************************/
|
||||
Employees: IReference.РАБ = CreateReference(EMPLOYEES_REFERENCE;
|
||||
ArrayOf("Пользователь"; SYSREQ_STATE); MyFunction(FALSE; MyParam * 0.05))
|
||||
Employees.Events.DisableAll
|
||||
EmployeesTableName = Employees.TableName
|
||||
EmployeesUserWhereID = Employees.AddWhere(Format(ADD_EQUAL_NUMBER_TEMPLATE;
|
||||
ArrayOf(EmployeesTableName; Employees.Requisites("Пользователь").SQLFieldName;
|
||||
EDocuments.CurrentUser.ID)))
|
||||
Employees.Open()
|
||||
Result = CreateStringList()
|
||||
foreach Employee in Employees
|
||||
if IsResultCode
|
||||
Result.Add(Employee.SYSREQ_CODE)
|
||||
else
|
||||
Result.Add(Employee.SYSREQ_ID)
|
||||
endif
|
||||
endforeach
|
||||
Employees.Close()
|
||||
Employees.DelWhere(EmployeesUserWhereID)
|
||||
Employees.Events.EnableAll
|
||||
Employees = nil
|
||||
16
vendor/scrivo/highlight.php/test/detect/java/default.txt
vendored
Normal file
16
vendor/scrivo/highlight.php/test/detect/java/default.txt
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* @author John Smith <john.smith@example.com>
|
||||
*/
|
||||
package l2f.gameserver.model;
|
||||
|
||||
public abstract class L2Char extends L2Object {
|
||||
public static final Short ERROR = 0x0001;
|
||||
|
||||
public void moveTo(int x, int y, int z) {
|
||||
_ai = null;
|
||||
log("Should not be called");
|
||||
if (1 > 5) { // wtf!?
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
21
vendor/scrivo/highlight.php/test/detect/javascript/default.txt
vendored
Normal file
21
vendor/scrivo/highlight.php/test/detect/javascript/default.txt
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
function $initHighlight(block, cls) {
|
||||
try {
|
||||
if (cls.search(/\bno\-highlight\b/) != -1)
|
||||
return process(block, true, 0x0F) +
|
||||
` class="${cls}"`;
|
||||
} catch (e) {
|
||||
/* handle exception */
|
||||
}
|
||||
for (var i = 0 / 2; i < classes.length; i++) {
|
||||
if (checkCondition(classes[i]) === undefined)
|
||||
console.log('undefined');
|
||||
}
|
||||
|
||||
return (
|
||||
<div>
|
||||
<web-component>{block}</web-component>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export $initHighlight;
|
||||
20
vendor/scrivo/highlight.php/test/detect/javascript/sample1.txt
vendored
Normal file
20
vendor/scrivo/highlight.php/test/detect/javascript/sample1.txt
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
// This was mis-detected as HSP and Perl because parsing of
|
||||
// keywords in those languages allowed adjacent dots
|
||||
|
||||
window.requestAnimationFrame(function render() {
|
||||
var pos = state.pos;
|
||||
|
||||
canvasEl.width = 500;
|
||||
canvasEl.height = 300;
|
||||
|
||||
if (dpad.right) {
|
||||
pos.x += 3;
|
||||
} else if (dpad.left) {
|
||||
pos.x -= 3;
|
||||
}
|
||||
|
||||
ctx.fillStyle = '#AF8452';
|
||||
ctx.fillRect(pos.x + 5, pos.y - 10, 10, 10);
|
||||
|
||||
window.requestAnimationFrame(render);
|
||||
});
|
||||
8
vendor/scrivo/highlight.php/test/detect/javascript/short-plain.txt
vendored
Normal file
8
vendor/scrivo/highlight.php/test/detect/javascript/short-plain.txt
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
const cluster = require('cluster');
|
||||
const numCPUs = require('os').cpus().length;
|
||||
|
||||
if (cluster.isMaster) {
|
||||
for (var i = 0; i < numCPUs; i++) {
|
||||
cluster.fork();
|
||||
}
|
||||
}
|
||||
24
vendor/scrivo/highlight.php/test/detect/jboss-cli/default.txt
vendored
Normal file
24
vendor/scrivo/highlight.php/test/detect/jboss-cli/default.txt
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
jms-queue add --queue-address=myQueue --entries=queue/myQueue
|
||||
|
||||
deploy /path/to/file.war
|
||||
|
||||
/system-property=prop1:add(value=value1)
|
||||
|
||||
|
||||
|
||||
/extension=org.jboss.as.modcluster:add
|
||||
|
||||
./foo=bar:remove
|
||||
|
||||
/subsystem=security/security-domain=demo-realm/authentication=classic:add
|
||||
|
||||
/subsystem=security/security-domain=demo-realm/authentication=classic/login-module=UsersRoles:add( \
|
||||
code=UsersRoles, \
|
||||
flag=required, \
|
||||
module-options= { \
|
||||
usersProperties=auth/demo-users.properties, \
|
||||
rolesProperties =auth/demo-roles.properties, \
|
||||
hashAlgorithm= MD5, \
|
||||
hashCharset="UTF-8" \
|
||||
} \
|
||||
)
|
||||
12
vendor/scrivo/highlight.php/test/detect/json/default.txt
vendored
Normal file
12
vendor/scrivo/highlight.php/test/detect/json/default.txt
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
[
|
||||
{
|
||||
"title": "apples",
|
||||
"count": [12000, 20000],
|
||||
"description": {"text": "...", "sensitive": false}
|
||||
},
|
||||
{
|
||||
"title": "oranges",
|
||||
"count": [17500, null],
|
||||
"description": {"text": "...", "sensitive": false}
|
||||
}
|
||||
]
|
||||
36
vendor/scrivo/highlight.php/test/detect/julia-repl/default.txt
vendored
Normal file
36
vendor/scrivo/highlight.php/test/detect/julia-repl/default.txt
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
julia> function foo(x) x + 1 end
|
||||
foo (generic function with 1 method)
|
||||
|
||||
julia> foo(42)
|
||||
43
|
||||
|
||||
julia> foo(42) === 43.
|
||||
false
|
||||
|
||||
|
||||
Here we match all three lines of code:
|
||||
|
||||
julia> function foo(x::Float64)
|
||||
42. - x
|
||||
end
|
||||
foo (generic function with 2 methods)
|
||||
|
||||
julia> for x in Any[1, 2, 3.4]
|
||||
println("foo($x) = $(foo(x))")
|
||||
end
|
||||
foo(1) = 2
|
||||
foo(2) = 3
|
||||
foo(3.4) = 38.6
|
||||
|
||||
|
||||
... unless it is not properly indented:
|
||||
|
||||
julia> function foo(x)
|
||||
x + 1
|
||||
end
|
||||
|
||||
|
||||
Ordinary Julia code does not get highlighted:
|
||||
|
||||
Pkg.add("Combinatorics")
|
||||
abstract type Foo end
|
||||
104
vendor/scrivo/highlight.php/test/detect/julia/default.txt
vendored
Normal file
104
vendor/scrivo/highlight.php/test/detect/julia/default.txt
vendored
Normal file
@@ -0,0 +1,104 @@
|
||||
### Types
|
||||
|
||||
# Old-style definitions
|
||||
|
||||
immutable Point{T<:AbstractFloat}
|
||||
index::Int
|
||||
x::T
|
||||
y::T
|
||||
end
|
||||
|
||||
abstract A
|
||||
|
||||
type B <: A end
|
||||
|
||||
typealias P Point{Float16}
|
||||
|
||||
# New-style definitions
|
||||
|
||||
struct Plus
|
||||
f::typeof(+)
|
||||
end
|
||||
|
||||
mutable struct Mut
|
||||
mutable::A # mutable should not be highlighted (not followed by struct)
|
||||
primitive::B # primitive should not be highlighted (not followed by type)
|
||||
end
|
||||
|
||||
primitive type Prim 8 end
|
||||
|
||||
abstract type Abstr end
|
||||
|
||||
### Modules
|
||||
|
||||
module M
|
||||
|
||||
using X
|
||||
import Y
|
||||
importall Z
|
||||
|
||||
export a, b, c
|
||||
|
||||
end # module
|
||||
|
||||
baremodule Bare
|
||||
end
|
||||
|
||||
### New in 0.6
|
||||
|
||||
# where, infix isa, UnionAll
|
||||
function F{T}(x::T) where T
|
||||
for i in x
|
||||
i isa UnionAll && return
|
||||
end
|
||||
end
|
||||
|
||||
### Miscellaneous
|
||||
|
||||
#=
|
||||
Multi
|
||||
Line
|
||||
Comment
|
||||
=#
|
||||
function method0(x, y::Int; version::VersionNumber=v"0.1.2")
|
||||
"""
|
||||
Triple
|
||||
Quoted
|
||||
String
|
||||
"""
|
||||
|
||||
@assert π > e
|
||||
|
||||
s = 1.2
|
||||
変数 = "variable"
|
||||
|
||||
if s * 100_000 ≥ 5.2e+10 && true || x === nothing
|
||||
s = 1. + .5im
|
||||
elseif 1 ∈ [1, 2, 3]
|
||||
println("s is $s and 変数 is $変数")
|
||||
else
|
||||
x = [1 2 3; 4 5 6]
|
||||
@show x'
|
||||
end
|
||||
|
||||
local var = rand(10)
|
||||
global g = 44
|
||||
var[1:5]
|
||||
var[5:end-1]
|
||||
var[end]
|
||||
|
||||
opt = "-la"
|
||||
run(`ls $opt`)
|
||||
|
||||
try
|
||||
ccall(:lib, (Ptr{Void},), Ref{C_NULL})
|
||||
catch
|
||||
throw(ArgumentError("wat"))
|
||||
finally
|
||||
warn("god save the queen")
|
||||
end
|
||||
|
||||
'\u2200' != 'T'
|
||||
|
||||
return 5s / 2
|
||||
end
|
||||
12
vendor/scrivo/highlight.php/test/detect/kotlin/default.txt
vendored
Normal file
12
vendor/scrivo/highlight.php/test/detect/kotlin/default.txt
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
import kotlin.lang.test
|
||||
|
||||
trait A {
|
||||
fun x()
|
||||
}
|
||||
|
||||
fun xxx() : Int {
|
||||
return 888
|
||||
}
|
||||
|
||||
public fun main(args : Array<String>) {
|
||||
}
|
||||
48
vendor/scrivo/highlight.php/test/detect/lasso/default.txt
vendored
Normal file
48
vendor/scrivo/highlight.php/test/detect/lasso/default.txt
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
<?LassoScript
|
||||
/* Lasso 8 */
|
||||
local('query' = 'SELECT * FROM `'+var:'table'+'` WHERE `id` > 10
|
||||
ORDER BY `Name` LIMIT 30');
|
||||
Inline: -Username=$DBuser, -Password=$DBpass, -Database=$DBname, -sql=#query;
|
||||
var("class1.name" = (found_count != 0 ? "subtotal" | "nonefound"),
|
||||
"total_amount" = found_count || "No results");
|
||||
records;
|
||||
output: "<tr>"loop_count"</tr>";
|
||||
/records;
|
||||
/Inline;
|
||||
?><div class="[$class1.name]">[$total_amount]</div>
|
||||
<?lasso
|
||||
/* Lasso 9 */ ?>
|
||||
[noprocess] causes [delimiters] to be <?=skipped?> until the next [/noprocess]
|
||||
[
|
||||
define strings.combine(value::string, ...other)::string => {
|
||||
local(result = #value->append(#other->asString&trim))
|
||||
return set(#result, not #other, \givenBlock)
|
||||
}
|
||||
/**! descriptive text */
|
||||
define person => type {
|
||||
parent entity
|
||||
data name::string, protected nickname, birthdate :: date
|
||||
data private ssn = null
|
||||
private showAge() => frozen { return ..age }
|
||||
protected fullName() => `"` + .nickname + `"` + .'name'
|
||||
public ssnListed::boolean => .ssn() ? true | false
|
||||
}
|
||||
define person->name=(value) => {
|
||||
.'name' = #value
|
||||
return self->'name'
|
||||
}
|
||||
define bytes->+(rhs::bytes) => bytes(self)->append(#rhs)&
|
||||
] <!-- an HTML comment <?=disables delimiters?> as well -->
|
||||
[no_square_brackets] disables [square brackets] for the rest of the file
|
||||
<?=
|
||||
// query expression
|
||||
with n in array((:-12, 0xABCD, 3.14159e14), (:NaN, -infinity, .57721))
|
||||
let swapped = pair(#n->\second, #n->first)
|
||||
group #swapped by #n->first into t
|
||||
let key = #t->key
|
||||
order by #key
|
||||
select pair(#key, #1)
|
||||
do {^
|
||||
#n->upperCase
|
||||
^}
|
||||
?>
|
||||
48
vendor/scrivo/highlight.php/test/detect/ldif/default.txt
vendored
Normal file
48
vendor/scrivo/highlight.php/test/detect/ldif/default.txt
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
# Example LDAP user
|
||||
dn: uid=user.0,ou=People,dc=example,dc=com
|
||||
objectClass: top
|
||||
objectClass: person
|
||||
objectClass: organizationalPerson
|
||||
objectClass: inetOrgPerson
|
||||
givenName: Morris
|
||||
sn: Day
|
||||
cn: Morris Day
|
||||
initials: MD
|
||||
employeeNumber: 0
|
||||
uid: user.0
|
||||
mail: user.0@example.com
|
||||
userPassword: password
|
||||
telephoneNumber: +1 042 100 3866
|
||||
homePhone: +1 039 680 4135
|
||||
pager: +1 284 199 0966
|
||||
mobile: +1 793 707 0251
|
||||
street: 90280 Spruce Street
|
||||
l: Minneapolis
|
||||
st: MN
|
||||
postalCode: 50401
|
||||
postalAddress: Morris Day$90280 Spruce Street$Minneapolis, MN 50401
|
||||
description: This is the description for Morris Day.
|
||||
|
||||
dn: CN=John Smith,OU=Legal,DC=example,DC=com
|
||||
changetype: modify
|
||||
replace: employeeID
|
||||
employeeID: 1234
|
||||
-
|
||||
replace: employeeNumber
|
||||
employeeNumber: 98722
|
||||
-
|
||||
replace: extensionAttribute6
|
||||
extensionAttribute6: JSmith98
|
||||
-
|
||||
|
||||
dn: CN=Jane Smith,OU=Accounting,DC=example,DC=com
|
||||
changetype: modify
|
||||
replace: employeeID
|
||||
employeeID: 5678
|
||||
-
|
||||
replace: employeeNumber
|
||||
employeeNumber: 76543
|
||||
-
|
||||
replace: extensionAttribute6
|
||||
extensionAttribute6: JSmith14
|
||||
-
|
||||
21
vendor/scrivo/highlight.php/test/detect/leaf/default.txt
vendored
Normal file
21
vendor/scrivo/highlight.php/test/detect/leaf/default.txt
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
#empty(friends) {
|
||||
Try adding some friends!
|
||||
} ##loop(friends, "friend") {
|
||||
<li> #(friend.name) </li>
|
||||
}
|
||||
|
||||
#someTag(parameter.list, goes, "here") {
|
||||
This is an optional body here
|
||||
}
|
||||
|
||||
#index(friends, "0") {
|
||||
Hello, #(self)!
|
||||
} ##else() {
|
||||
Nobody's there!
|
||||
}
|
||||
|
||||
#()
|
||||
|
||||
#raw() {
|
||||
<li> Hello </li>
|
||||
}
|
||||
27
vendor/scrivo/highlight.php/test/detect/less/default.txt
vendored
Normal file
27
vendor/scrivo/highlight.php/test/detect/less/default.txt
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
@import "fruits";
|
||||
|
||||
@rhythm: 1.5em;
|
||||
|
||||
@media screen and (min-resolution: 2dppx) {
|
||||
body {font-size: 125%}
|
||||
}
|
||||
|
||||
section > .foo + #bar:hover [href*="less"] {
|
||||
margin: @rhythm 0 0 @rhythm;
|
||||
padding: calc(5% + 20px);
|
||||
background: #f00ba7 url(http://placehold.alpha-centauri/42.png) no-repeat;
|
||||
background-image: linear-gradient(-135deg, wheat, fuchsia) !important ;
|
||||
background-blend-mode: multiply;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: /* ? */ 'Omega';
|
||||
src: url('../fonts/omega-webfont.woff?v=2.0.2');
|
||||
}
|
||||
|
||||
.icon-baz::before {
|
||||
display: inline-block;
|
||||
font-family: "Omega", Alpha, sans-serif;
|
||||
content: "\f085";
|
||||
color: rgba(98, 76 /* or 54 */, 231, .75);
|
||||
}
|
||||
22
vendor/scrivo/highlight.php/test/detect/lisp/default.txt
vendored
Normal file
22
vendor/scrivo/highlight.php/test/detect/lisp/default.txt
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env csi
|
||||
|
||||
(defun prompt-for-cd ()
|
||||
"Prompts
|
||||
for CD"
|
||||
(prompt-read "Title" 1.53 1 2/4 1.7 1.7e0 2.9E-4 +42 -7 #b001 #b001/100 #o777 #O777 #xabc55 #c(0 -5.6))
|
||||
(prompt-read "Artist" &rest)
|
||||
(or (parse-integer (prompt-read "Rating") :junk-allowed t) 0)
|
||||
(if x (format t "yes") (format t "no" nil) ;and here comment
|
||||
)
|
||||
;; second line comment
|
||||
'(+ 1 2)
|
||||
(defvar *lines*) ; list of all lines
|
||||
(position-if-not #'sys::whitespacep line :start beg))
|
||||
(quote (privet 1 2 3))
|
||||
'(hello world)
|
||||
(* 5 7)
|
||||
(1 2 34 5)
|
||||
(:use "aaaa")
|
||||
(let ((x 10) (y 20))
|
||||
(print (+ x y))
|
||||
)
|
||||
30
vendor/scrivo/highlight.php/test/detect/livecodeserver/default.txt
vendored
Normal file
30
vendor/scrivo/highlight.php/test/detect/livecodeserver/default.txt
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
<?rev
|
||||
|
||||
global gControllerHandlers, gData
|
||||
local sTest
|
||||
put "blog,index" into gControllerHandlers
|
||||
|
||||
|
||||
command blog
|
||||
-- simple comment
|
||||
put "Hello World!" into sTest
|
||||
# ANOTHER COMMENT
|
||||
put "form,url,asset" into tHelpers
|
||||
rigLoadHelper tHelpers
|
||||
end blog
|
||||
|
||||
/*Hello
|
||||
block comment!*/
|
||||
|
||||
function myFunction
|
||||
if the secs > 2000000000 then
|
||||
put "Welcome to the future!"
|
||||
else
|
||||
return "something"
|
||||
end if
|
||||
end myFunction
|
||||
|
||||
|
||||
--| END OF blog.lc
|
||||
--| Location: ./system/application/controllers/blog.lc
|
||||
----------------------------------------------------------------------
|
||||
66
vendor/scrivo/highlight.php/test/detect/livescript/default.txt
vendored
Normal file
66
vendor/scrivo/highlight.php/test/detect/livescript/default.txt
vendored
Normal file
@@ -0,0 +1,66 @@
|
||||
# take the first n objects from a list
|
||||
take = (n, [x, ...xs]:list) -->
|
||||
| n <= 0 => []
|
||||
| empty list => []
|
||||
| otherwise => [x] ++ take n - 1, xs
|
||||
|
||||
take 2, [1, 2, 3, 4, 5]
|
||||
|
||||
# Curried functions
|
||||
take-three = take 3
|
||||
take-three [6, 7, 8, 9, 10]
|
||||
|
||||
# Function composition
|
||||
last-three = reverse >> take-three >> reverse
|
||||
last-three [1 to 8]
|
||||
|
||||
# List comprehensions and piping
|
||||
const t1 =
|
||||
* id: 1
|
||||
name: 'george'
|
||||
* id: 2
|
||||
name: 'mike'
|
||||
* id: 3
|
||||
name: 'donald'
|
||||
|
||||
const t2 =
|
||||
* id: 2
|
||||
age: 21
|
||||
* id: 1
|
||||
age: 20
|
||||
* id: 3
|
||||
age: 26
|
||||
[{id:id1, name, age}
|
||||
for {id:id1, name} in t1
|
||||
for {id:id2, age} in t2
|
||||
where id1 is id2]
|
||||
|> sort-by \id
|
||||
|> JSON.stringify
|
||||
|
||||
~function add x, y
|
||||
@result = x + y
|
||||
|
||||
class A
|
||||
(num) ->
|
||||
@x = num
|
||||
property: 1
|
||||
method: (y) ->
|
||||
@x + @property + y
|
||||
|
||||
a = new A 3
|
||||
a.x #=> 3
|
||||
a.property #=> 1
|
||||
a.method 6 #=> 10
|
||||
|
||||
f = !-> 2
|
||||
g = (x) !-> x + 2
|
||||
|
||||
result = switch 'test'
|
||||
case 'blatant'
|
||||
'effort'
|
||||
fallthrough
|
||||
case 'at'
|
||||
'increasing'
|
||||
fallthrough
|
||||
case 'relevance'
|
||||
void
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user