use prism-tomorrow.css

This commit is contained in:
CyC2018
2018-12-19 14:09:39 +08:00
parent 0f00bcacaf
commit e9e604e6a7
1747 changed files with 100462 additions and 0 deletions

View File

@ -0,0 +1,13 @@
*
* Foobar
----------------------------------------------------
[
["comment", "*"],
["comment", "* Foobar"]
]
----------------------------------------------------
Checks for comments.

View File

@ -0,0 +1,13 @@
"
" foobar
----------------------------------------------------
[
["eol-comment", "\""],
["eol-comment", "\" foobar"]
]
----------------------------------------------------
Checks for EOL comments.

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,15 @@
0
42
123456789
----------------------------------------------------
[
["number", "0"],
["number", "42"],
["number", "123456789"]
]
----------------------------------------------------
Checks for numbers.

View File

@ -0,0 +1,38 @@
.
+ -
/ * **
< > <= >=
= ?= <>
& &&
a-b
a~b
a->b
a=>b
a|b
a{b}c
----------------------------------------------------
[
["punctuation", "."],
["operator", "+"], ["operator", "-"],
["operator", "/"], ["operator", "*"], ["operator", "**"],
["operator", "<"], ["operator", ">"], ["operator", "<="], ["operator", ">="],
["operator", "="], ["operator", "?="], ["operator", "<>"],
["string-operator", "&"], ["string-operator", "&&"],
"\r\n\r\na", ["token-operator", "-"],
"b\r\na", ["token-operator", "~"],
"b\r\na", ["token-operator", "->"],
"b\r\na", ["token-operator", "=>"],
"b\r\na", ["token-operator", "|"],
"b\r\na", ["token-operator", "{"], "b", ["token-operator", "}"], "c"
]
----------------------------------------------------
Checks for operators, string-operators and token-operators.
The leading dot serves only because tests are trimmed.

View File

@ -0,0 +1,17 @@
|foobar|
|foo\|b\{a}r|
|foo { bar } baz|
----------------------------------------------------
[
["token-operator", "|"], ["string-template", "foobar"], ["token-operator", "|"],
["token-operator", "|"], ["string-template", "foo\\|b\\{a}r"], ["token-operator", "|"],
["token-operator", "|"], ["string-template", "foo "], ["token-operator", "{"],
" bar ",
["token-operator", "}"], ["string-template", " baz"], ["token-operator", "|"]
]
----------------------------------------------------
Checks for string templates.

View File

@ -0,0 +1,21 @@
''
'foo'
'foo\'bar'
``
`foo`
`foo\`bar`
----------------------------------------------------
[
["string", "''"],
["string", "'foo'"],
["string", "'foo\\'bar'"],
["string", "``"],
["string", "`foo`"],
["string", "`foo\\`bar`"]
]
----------------------------------------------------
Checks for strings.

View File

@ -0,0 +1,71 @@
as; break; case; catch; class;
const; default; delete; do; else;
extends; finally; for; function; if;
implements; import; in; instanceof; interface;
internal; is; native; new; null;
package; private; protected; public; return;
super; switch; this; throw; try;
typeof; use; var; void; while;
with; dynamic; each; final; get;
include; namespace; native; override; set;
static;
----------------------------------------------------
[
["keyword", "as"], ["punctuation", ";"],
["keyword", "break"], ["punctuation", ";"],
["keyword", "case"], ["punctuation", ";"],
["keyword", "catch"], ["punctuation", ";"],
["keyword", "class"], ["punctuation", ";"],
["keyword", "const"], ["punctuation", ";"],
["keyword", "default"], ["punctuation", ";"],
["keyword", "delete"], ["punctuation", ";"],
["keyword", "do"], ["punctuation", ";"],
["keyword", "else"], ["punctuation", ";"],
["keyword", "extends"], ["punctuation", ";"],
["keyword", "finally"], ["punctuation", ";"],
["keyword", "for"], ["punctuation", ";"],
["keyword", "function"], ["punctuation", ";"],
["keyword", "if"], ["punctuation", ";"],
["keyword", "implements"], ["punctuation", ";"],
["keyword", "import"], ["punctuation", ";"],
["keyword", "in"], ["punctuation", ";"],
["keyword", "instanceof"], ["punctuation", ";"],
["keyword", "interface"], ["punctuation", ";"],
["keyword", "internal"], ["punctuation", ";"],
["keyword", "is"], ["punctuation", ";"],
["keyword", "native"], ["punctuation", ";"],
["keyword", "new"], ["punctuation", ";"],
["keyword", "null"], ["punctuation", ";"],
["keyword", "package"], ["punctuation", ";"],
["keyword", "private"], ["punctuation", ";"],
["keyword", "protected"], ["punctuation", ";"],
["keyword", "public"], ["punctuation", ";"],
["keyword", "return"], ["punctuation", ";"],
["keyword", "super"], ["punctuation", ";"],
["keyword", "switch"], ["punctuation", ";"],
["keyword", "this"], ["punctuation", ";"],
["keyword", "throw"], ["punctuation", ";"],
["keyword", "try"], ["punctuation", ";"],
["keyword", "typeof"], ["punctuation", ";"],
["keyword", "use"], ["punctuation", ";"],
["keyword", "var"], ["punctuation", ";"],
["keyword", "void"], ["punctuation", ";"],
["keyword", "while"], ["punctuation", ";"],
["keyword", "with"], ["punctuation", ";"],
["keyword", "dynamic"], ["punctuation", ";"],
["keyword", "each"], ["punctuation", ";"],
["keyword", "final"], ["punctuation", ";"],
["keyword", "get"], ["punctuation", ";"],
["keyword", "include"], ["punctuation", ";"],
["keyword", "namespace"], ["punctuation", ";"],
["keyword", "native"], ["punctuation", ";"],
["keyword", "override"], ["punctuation", ";"],
["keyword", "set"], ["punctuation", ";"],
["keyword", "static"], ["punctuation", ";"]
]
----------------------------------------------------
Checks for all keywords.

View File

@ -0,0 +1,29 @@
+ - * / % ^
+= -= *= /= %= ^=
& && | ||
&= &&= |= ||=
< << > >> >>>
<= <<= >= >>= >>>=
! != = ==
!== ===
~ ? @
++ --
----------------------------------------------------
[
["operator", "+"], ["operator", "-"], ["operator", "*"], ["operator", "/"], ["operator", "%"], ["operator", "^"],
["operator", "+="], ["operator", "-="], ["operator", "*="], ["operator", "/="], ["operator", "%="], ["operator", "^="],
["operator", "&"], ["operator", "&&"], ["operator", "|"], ["operator", "||"],
["operator", "&="], ["operator", "&&="], ["operator", "|="], ["operator", "||="],
["operator", "<"], ["operator", "<<"], ["operator", ">"], ["operator", ">>"], ["operator", ">>>"],
["operator", "<="], ["operator", "<<="], ["operator", ">="], ["operator", ">>="], ["operator", ">>>="],
["operator", "!"], ["operator", "!="], ["operator", "="], ["operator", "=="],
["operator", "!=="], ["operator", "==="],
["operator", "~"], ["operator", "?"], ["operator", "@"],
["operator", "++"], ["operator", "--"]
]
----------------------------------------------------
Checks for all operators.

View File

@ -0,0 +1,13 @@
Integer'Size
Character'Val
----------------------------------------------------
[
["variable", "Integer"], ["attr-name", "'Size"],
["variable", "Character"], ["attr-name", "'Val"]
]
----------------------------------------------------
Checks for attributes.

View File

@ -0,0 +1,13 @@
true
false
----------------------------------------------------
[
["boolean", "true"],
["boolean", "false"]
]
----------------------------------------------------
Checks for booleans.

View File

@ -0,0 +1,13 @@
'f'
'A'
----------------------------------------------------
[
["char", "'f'"],
["char", "'A'"]
]
----------------------------------------------------
Checks for chars.

View File

@ -0,0 +1,13 @@
--
-- Foo bar
----------------------------------------------------
[
["comment", "--"],
["comment", "-- Foo bar"]
]
----------------------------------------------------
Checks for comments.

View File

@ -0,0 +1,153 @@
abort
abs
abstract
accept
access
aliased
all
and
array
at
begin
body
case
constant
declare
delay
delta
digits
do
else
new
return
elsif
end
entry
exception
exit
for
function
generic
goto
if
in
interface
is
limited
loop
mod
not
null
of
others
out
overriding
package
pragma
private
procedure
protected
raise
range
record
rem
renames
requeue
reverse
select
separate
some
subtype
synchronized
tagged
task
terminate
then
type
until
use
when
while
with
xor
----------------------------------------------------
[
["keyword", "abort"],
["keyword", "abs"],
["keyword", "abstract"],
["keyword", "accept"],
["keyword", "access"],
["keyword", "aliased"],
["keyword", "all"],
["keyword", "and"],
["keyword", "array"],
["keyword", "at"],
["keyword", "begin"],
["keyword", "body"],
["keyword", "case"],
["keyword", "constant"],
["keyword", "declare"],
["keyword", "delay"],
["keyword", "delta"],
["keyword", "digits"],
["keyword", "do"],
["keyword", "else"],
["keyword", "new"],
["keyword", "return"],
["keyword", "elsif"],
["keyword", "end"],
["keyword", "entry"],
["keyword", "exception"],
["keyword", "exit"],
["keyword", "for"],
["keyword", "function"],
["keyword", "generic"],
["keyword", "goto"],
["keyword", "if"],
["keyword", "in"],
["keyword", "interface"],
["keyword", "is"],
["keyword", "limited"],
["keyword", "loop"],
["keyword", "mod"],
["keyword", "not"],
["keyword", "null"],
["keyword", "of"],
["keyword", "others"],
["keyword", "out"],
["keyword", "overriding"],
["keyword", "package"],
["keyword", "pragma"],
["keyword", "private"],
["keyword", "procedure"],
["keyword", "protected"],
["keyword", "raise"],
["keyword", "range"],
["keyword", "record"],
["keyword", "rem"],
["keyword", "renames"],
["keyword", "requeue"],
["keyword", "reverse"],
["keyword", "select"],
["keyword", "separate"],
["keyword", "some"],
["keyword", "subtype"],
["keyword", "synchronized"],
["keyword", "tagged"],
["keyword", "task"],
["keyword", "terminate"],
["keyword", "then"],
["keyword", "type"],
["keyword", "until"],
["keyword", "use"],
["keyword", "when"],
["keyword", "while"],
["keyword", "with"],
["keyword", "xor"]
]
----------------------------------------------------
Checks for keywords.

View File

@ -0,0 +1,21 @@
42
42_000
3.14_15_9
0.4E+123_456
3.7e-7
1_6#Bad_Face#E-32_1
----------------------------------------------------
[
["number", "42"],
["number", "42_000"],
["number", "3.14_15_9"],
["number", "0.4E+123_456"],
["number", "3.7e-7"],
["number", "1_6#Bad_Face#E-32_1"]
]
----------------------------------------------------
Checks for numbers.

View File

@ -0,0 +1,23 @@
<>
=> :=
< <=
> >=
= /=
& + -
* ** /
----------------------------------------------------
[
["operator", "<>"],
["operator", "=>"], ["operator", ":="],
["operator", "<"], ["operator", "<="],
["operator", ">"], ["operator", ">="],
["operator", "="], ["operator", "/="],
["operator", "&"], ["operator", "+"], ["operator", "-"],
["operator", "*"], ["operator", "**"], ["operator", "/"]
]
----------------------------------------------------
Checks for operators.

View File

@ -0,0 +1,13 @@
""
"Foo""bar"""
----------------------------------------------------
[
["string", "\"\""],
["string", "\"Foo\"\"bar\"\"\""]
]
----------------------------------------------------
Checks for strings.

View File

@ -0,0 +1,13 @@
Byte
foo_bar42
----------------------------------------------------
[
["variable", "Byte"],
["variable", "foo_bar42"]
]
----------------------------------------------------
Checks for variables.

View File

@ -0,0 +1,15 @@
#foo
# bar
# Redirect 301 /2006/oldfile.html http://subdomain.domain.tld/newfile.html
----------------------------------------------------
[
["comment", "#foo"],
["comment", "# bar"],
["comment", "# Redirect 301 /2006/oldfile.html http://subdomain.domain.tld/newfile.html"]
]
----------------------------------------------------
Checks for comments.

View File

@ -0,0 +1,469 @@
<AuthnProviderAlias file file2>
</AuthnProviderAlias>
<AuthzProviderAlias ldap-group ldap-group-alias1 "cn=my-group,o=ctx">
</AuthzProviderAlias>
<Directory "/webpages/secure">
</Directory>
<DirectoryMatch "^/www/(.+/)?[0-9]{3}">
</DirectoryMatch>
<Else>
</Else>
<ElseIf "-R '10.0.0.0/8'">
</ElseIf>
<Files ~ "\.(gif|jpe?g|png)$">
</Files>
<FilesMatch ".+\.(gif|jpe?g|png)$">
</FilesMatch>
<If "-z req('Host')">
</If>
<IfDefine !MemCache>
</IfDefine>
<IfModule mod_rewrite.c>
</IfModule>
<IfVersion 2.1.0>
</IfVersion>
<Limit POST PUT DELETE>
</Limit>
<LimitExcept POST GET>
</LimitExcept>
<Location /private1>
</Location>
<LocationMatch "/(extra|special)/data">
</LocationMatch>
<Macro LocalAccessPolicy>
</Macro>
<Proxy "*">
</Proxy>
<RequireAll>
</RequireAll>
<RequireAny>
</RequireAny>
<RequireNone>
</RequireNone>
<VirtualHost [2001:db8::a00:20ff:fea7:ccea]:80>
</VirtualHost>
----------------------------------------------------
[
["directive-block", [
["directive-block", [
["punctuation", "<"],
"AuthnProviderAlias"
]],
["directive-block-parameter", [
" file file2"
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "</"],
"AuthnProviderAlias"
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "<"],
"AuthzProviderAlias"
]],
["directive-block-parameter", [
" ldap-group ldap-group-alias1 ",
["string", [
"\"cn=my-group,o=ctx\""
]]
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "</"],
"AuthzProviderAlias"
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "<"],
"Directory"
]],
["directive-block-parameter", [
["string", [
"\"/webpages/secure\""
]]
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "</"],
"Directory"
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "<"],
"DirectoryMatch"
]],
["directive-block-parameter", [
["string", [
"\"^/www/(.+/)?[0-9]{3}\""
]]
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "</"],
"DirectoryMatch"
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "<"],
"Else"
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "</"],
"Else"
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "<"],
"ElseIf"
]],
["directive-block-parameter", [
["string", [
"\"-R '10.0.0.0/8'\""
]]
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "</"],
"ElseIf"
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "<"],
"Files"
]],
["directive-block-parameter", [
" ~ ",
["string", [
"\"\\.(gif|jpe?g|png)$\""
]]
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "</"],
"Files"
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "<"],
"FilesMatch"
]],
["directive-block-parameter", [
["string", [
"\".+\\.(gif|jpe?g|png)$\""
]]
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "</"],
"FilesMatch"
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "<"],
"If"
]],
["directive-block-parameter", [
["string", [
"\"-z req('Host')\""
]]
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "</"],
"If"
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "<"],
"IfDefine"
]],
["directive-block-parameter", [
" !MemCache"
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "</"],
"IfDefine"
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "<"],
"IfModule"
]],
["directive-block-parameter", [
" mod_rewrite.c"
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "</"],
"IfModule"
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "<"],
"IfVersion"
]],
["directive-block-parameter", [
" 2.1.0"
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "</"],
"IfVersion"
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "<"],
"Limit"
]],
["directive-block-parameter", [
" POST PUT DELETE"
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "</"],
"Limit"
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "<"],
"LimitExcept"
]],
["directive-block-parameter", [
" POST GET"
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "</"],
"LimitExcept"
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "<"],
"Location"
]],
["directive-block-parameter", [
" /private1"
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "</"],
"Location"
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "<"],
"LocationMatch"
]],
["directive-block-parameter", [
["string", [
"\"/(extra|special)/data\""
]]
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "</"],
"LocationMatch"
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "<"],
"Macro"
]],
["directive-block-parameter", [
" LocalAccessPolicy"
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "</"],
"Macro"
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "<"],
"Proxy"
]],
["directive-block-parameter", [
["string", [
"\"*\""
]]
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "</"],
"Proxy"
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "<"],
"RequireAll"
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "</"],
"RequireAll"
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "<"],
"RequireAny"
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "</"],
"RequireAny"
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "<"],
"RequireNone"
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "</"],
"RequireNone"
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "<"],
"VirtualHost"
]],
["directive-block-parameter", [
" [2001",
["punctuation", ":"],
"db8",
["punctuation", ":"],
["punctuation", ":"],
"a00",
["punctuation", ":"],
"20ff",
["punctuation", ":"],
"fea7",
["punctuation", ":"],
"ccea]",
["punctuation", ":"],
"80"
]],
["punctuation", ">"]
]],
["directive-block", [
["directive-block", [
["punctuation", "</"],
"VirtualHost"
]],
["punctuation", ">"]
]]
]
----------------------------------------------------
Checks for directive blocks.

View File

@ -0,0 +1,13 @@
[OR]
[L,QSA]
----------------------------------------------------
[
["directive-flags", "[OR]"],
["directive-flags", "[L,QSA]"]
]
----------------------------------------------------
Checks for directive flags.

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,15 @@
^(.*)$
^foo
bar$
----------------------------------------------------
[
["regex", "^(.*)$"],
["regex", "^foo"],
["regex", "bar$"]
]
----------------------------------------------------
Checks for regex.

View File

@ -0,0 +1,24 @@
"foo bar"
'foo bar'
"%{REMOTE_HOST}"
----------------------------------------------------
[
["string", [
"\"foo bar\""
]],
["string", [
"'foo bar'"
]],
["string", [
"\"",
["variable", "%{REMOTE_HOST}"],
"\""
]]
]
----------------------------------------------------
Checks for strings.
Also checks for variables inside strings.

View File

@ -0,0 +1,15 @@
$port
${docroot}
%{REMOTE_HOST}
----------------------------------------------------
[
["variable", "$port"],
["variable", "${docroot}"],
["variable", "%{REMOTE_HOST}"]
]
----------------------------------------------------
Checks for variables.

View File

@ -0,0 +1,13 @@
a←1 2 3
----------------------------------------------------
[
"a",
["assignment", "←"],
["number", "1"], ["number", "2"], ["number", "3"]
]
----------------------------------------------------
Checks for assignment.

View File

@ -0,0 +1,15 @@
⍝ Foobar
#!/usr/bin/env runapl
----------------------------------------------------
[
["comment", "⍝"],
["comment", "⍝ Foobar"],
["comment", "#!/usr/bin/env runapl"]
]
----------------------------------------------------
Checks for comments.

View File

@ -0,0 +1,19 @@
#
----------------------------------------------------
[
["constant", "⍬"],
["constant", "⌾"],
["constant", "#"],
["constant", "⎕"],
["constant", "⍞"]
]
----------------------------------------------------
Checks for constants.

View File

@ -0,0 +1,23 @@
{0=:'hello' ⋄ ∇¨⍵}
----------------------------------------------------
[
["dfn", "{"],
["number", "0"],
["function", "="],
["function", ""],
["function", ""],
["dfn", ""],
["dfn", ":"],
["string", "'hello'"],
["punctuation", "⋄"],
["dfn", "∇"],
["monadic-operator", "¨"],
["dfn", "⍵"],
["dfn", "}"]
]
----------------------------------------------------
Checks for Dfns.

View File

@ -0,0 +1,15 @@
. ⍣ ⍠
⍤ ∘ ⌸
@ ⌺
----------------------------------------------------
[
["dyadic-operator", "."], ["dyadic-operator", "⍣"], ["dyadic-operator", "⍠"],
["dyadic-operator", "⍤"], ["dyadic-operator", "∘"], ["dyadic-operator", "⌸"],
["dyadic-operator", "@"], ["dyadic-operator", "⌺"]
]
----------------------------------------------------
Checks for dyadic operators.

View File

@ -0,0 +1,43 @@
- + × ÷
⌈ ⌊ |
⍸ ? *
⍟ ○ ! ⌹
< ≤ = >
≥ ≠ ≡ ≢
∊ ⍷
~ ∧ ⍱
, ⍪
⌽ ⊖ ⍉
↑ ↓ ⊂ ⊃
⊆ ⊇
⌷ ⍋ ⍒
⊥ ⍕ ⍎
⊣ ⊢ ⍁ ⍂
≈ ⍯
↗ ¤ →
----------------------------------------------------
[
["function", "-"], ["function", "+"], ["function", "×"], ["function", "÷"],
["function", "⌈"], ["function", "⌊"], ["function", ""], ["function", "|"],
["function", ""], ["function", "⍸"], ["function", "?"], ["function", "*"],
["function", "⍟"], ["function", "○"], ["function", "!"], ["function", "⌹"],
["function", "<"], ["function", "≤"], ["function", "="], ["function", ">"],
["function", "≥"], ["function", "≠"], ["function", "≡"], ["function", "≢"],
["function", "∊"], ["function", "⍷"], ["function", ""], ["function", "∩"],
["function", "~"], ["function", ""], ["function", "∧"], ["function", "⍱"],
["function", "⍲"], ["function", ""], ["function", ","], ["function", "⍪"],
["function", "⌽"], ["function", "⊖"], ["function", "⍉"],
["function", "↑"], ["function", "↓"], ["function", "⊂"], ["function", "⊃"],
["function", "⊆"], ["function", "⊇"],
["function", "⌷"], ["function", "⍋"], ["function", "⍒"],
["function", ""], ["function", "⊥"], ["function", "⍕"], ["function", "⍎"],
["function", "⊣"], ["function", "⊢"], ["function", "⍁"], ["function", "⍂"],
["function", "≈"], ["function", "⍯"],
["function", "↗"], ["function", "¤"], ["function", "→"]
]
----------------------------------------------------
Checks for functions.

View File

@ -0,0 +1,15 @@
\ / ⌿ ⍀
¨ ⍨ ⌶
& ∥
----------------------------------------------------
[
["monadic-operator", "\\"], ["monadic-operator", "/"], ["monadic-operator", "⌿"], ["monadic-operator", "⍀"],
["monadic-operator", "¨"], ["monadic-operator", "⍨"], ["monadic-operator", "⌶"],
["monadic-operator", "&"], ["monadic-operator", "∥"]
]
----------------------------------------------------
Checks for monadic operators.

View File

@ -0,0 +1,27 @@
42
3.14159
¯2
3E12
2.8e¯4
0.1e+7
2j3
¯4.3e2J1.9e¯4
----------------------------------------------------
[
["number", "42"],
["number", "3.14159"],
["number", "¯2"],
["number", "∞"],
["number", "3E12"],
["number", "2.8e¯4"],
["number", "0.1e+7"],
["number", "2j3"],
["number", "¯4.3e2J1.9e¯4"]
]
----------------------------------------------------
Checks for numbers.

View File

@ -0,0 +1,13 @@
:Ab
:FooBar
----------------------------------------------------
[
["statement", ":Ab"],
["statement", ":FooBar"]
]
----------------------------------------------------
Checks for statements.

View File

@ -0,0 +1,15 @@
''
'foobar'
'fo''obar'
----------------------------------------------------
[
["string", "''"],
["string", "'foobar'"],
["string", "'fo''obar'"]
]
----------------------------------------------------
Checks for strings.

View File

@ -0,0 +1,17 @@
⎕IO
⎕WA
⎕CR
⎕TCNL
----------------------------------------------------
[
["system-function", "⎕IO"],
["system-function", "⎕WA"],
["system-function", "⎕CR"],
["system-function", "⎕TCNL"]
]
----------------------------------------------------
Checks for system functions.

View File

@ -0,0 +1,39 @@
alias application boolean class constant
date file integer list number
POSIX file
real record reference
RGB color
script text centimetres centimeters feet
inches kilometres kilometers metres meters
miles yards
square feet square kilometres square kilometers square metres
square meters square miles square yards
cubic centimetres cubic centimeters cubic feet cubic inches
cubic metres cubic meters cubic yards
gallons litres liters quarts grams
kilograms ounces pounds
degrees Celsius degrees Fahrenheit degrees Kelvin
----------------------------------------------------
[
["class", "alias"], ["class", "application"], ["class", "boolean"], ["class", "class"], ["class", "constant"],
["class", "date"], ["class", "file"], ["class", "integer"], ["class", "list"], ["class", "number"],
["class", "POSIX file"],
["class", "real"], ["class", "record"], ["class", "reference"],
["class", "RGB color"],
["class", "script"], ["class", "text"], ["class", "centimetres"], ["class", "centimeters"], ["class", "feet"],
["class", "inches"], ["class", "kilometres"], ["class", "kilometers"], ["class", "metres"], ["class", "meters"],
["class", "miles"], ["class", "yards"],
["class", "square feet"], ["class", "square kilometres"], ["class", "square kilometers"], ["class", "square metres"],
["class", "square meters"], ["class", "square miles"], ["class", "square yards"],
["class", "cubic centimetres"], ["class", "cubic centimeters"], ["class", "cubic feet"], ["class", "cubic inches"],
["class", "cubic metres"], ["class", "cubic meters"], ["class", "cubic yards"],
["class", "gallons"], ["class", "litres"], ["class", "liters"], ["class", "quarts"], ["class", "grams"],
["class", "kilograms"], ["class", "ounces"], ["class", "pounds"],
["class", "degrees Celsius"], ["class", "degrees Fahrenheit"], ["class", "degrees Kelvin"]
]
----------------------------------------------------
Checks for all classes.

View File

@ -0,0 +1,21 @@
-- foo bar
# foo bar
(* foo
bar *)
(* foo
(* bar *)
*)
----------------------------------------------------
[
["comment", "-- foo bar"],
["comment", "# foo bar"],
["comment", "(* foo\r\nbar *)"],
["comment", "(* foo\r\n(* bar *)\r\n*)"]
]
----------------------------------------------------
Checks for single-line and multi-line comments.
Also checks for one level of nesting.

View File

@ -0,0 +1,59 @@
about above after against
apart from
around
aside from
at back before beginning behind below
beneath beside between but by
considering continue copy
does eighth else end
equal error every exit
false fifth first for fourth
from front get given global
if ignoring in
instead of
into is it its last
local me middle my
ninth of on onto
out of
over prop property put
repeat return returning
second set seventh since sixth
some tell tenth that the
then third through thru timeout
times to transaction true try
until where while whose with
without
----------------------------------------------------
[
["keyword", "about"], ["keyword", "above"], ["keyword", "after"], ["keyword", "against"],
["keyword", "apart from"],
["keyword", "around"],
["keyword", "aside from"],
["keyword", "at"], ["keyword", "back"], ["keyword", "before"], ["keyword", "beginning"], ["keyword", "behind"], ["keyword", "below"],
["keyword", "beneath"], ["keyword", "beside"], ["keyword", "between"], ["keyword", "but"], ["keyword", "by"],
["keyword", "considering"], ["keyword", "continue"], ["keyword", "copy"],
["keyword", "does"], ["keyword", "eighth"], ["keyword", "else"], ["keyword", "end"],
["keyword", "equal"], ["keyword", "error"], ["keyword", "every"], ["keyword", "exit"],
["keyword", "false"], ["keyword", "fifth"], ["keyword", "first"], ["keyword", "for"], ["keyword", "fourth"],
["keyword", "from"], ["keyword", "front"], ["keyword", "get"], ["keyword", "given"], ["keyword", "global"],
["keyword", "if"], ["keyword", "ignoring"], ["keyword", "in"],
["keyword", "instead of"],
["keyword", "into"], ["keyword", "is"], ["keyword", "it"], ["keyword", "its"], ["keyword", "last"],
["keyword", "local"], ["keyword", "me"], ["keyword", "middle"], ["keyword", "my"],
["keyword", "ninth"], ["keyword", "of"], ["keyword", "on"], ["keyword", "onto"],
["keyword", "out of"],
["keyword", "over"], ["keyword", "prop"], ["keyword", "property"], ["keyword", "put"],
["keyword", "repeat"], ["keyword", "return"], ["keyword", "returning"],
["keyword", "second"], ["keyword", "set"], ["keyword", "seventh"], ["keyword", "since"], ["keyword", "sixth"],
["keyword", "some"], ["keyword", "tell"], ["keyword", "tenth"], ["keyword", "that"], ["keyword", "the"],
["keyword", "then"], ["keyword", "third"], ["keyword", "through"], ["keyword", "thru"], ["keyword", "timeout"],
["keyword", "times"], ["keyword", "to"], ["keyword", "transaction"], ["keyword", "true"], ["keyword", "try"],
["keyword", "until"], ["keyword", "where"], ["keyword", "while"], ["keyword", "whose"], ["keyword", "with"],
["keyword", "without"]
]
----------------------------------------------------
Checks for all keywords.

View File

@ -0,0 +1,17 @@
42
3.14159
3e10
4.2E-5
----------------------------------------------------
[
["number", "42"],
["number", "3.14159"],
["number", "3e10"],
["number", "4.2E-5"]
]
----------------------------------------------------
Checks for numbers.

View File

@ -0,0 +1,48 @@
& = ≠ ≤ ≥
* + - / ÷ ^
< <= > >=
start with begin with end with
starts with begins with ends with
does not contain doesn't contain
contain contains
is in isn't in is not in
is contained by isn't contained by is not contained by
greater than greater than or equal greater than or equal to
less than less than or equal less than or equal to
does not come before doesn't come before comes before
does not come after doesn't come after comes after
is equal isn't equal is not equal
is equal to isn't equal to is not equal to
does not equal doesn't equal equals
isn't is not
ref a ref to a reference to
and or div mod as not
----------------------------------------------------
[
["operator", "&"], ["operator", "="], ["operator", "≠"], ["operator", "≤"], ["operator", "≥"],
["operator", "*"], ["operator", "+"], ["operator", "-"], ["operator", "/"], ["operator", "÷"], ["operator", "^"],
["operator", "<"], ["operator", "<="], ["operator", ">"], ["operator", ">="],
["operator", "start with"], ["operator", "begin with"], ["operator", "end with"],
["operator", "starts with"], ["operator", "begins with"], ["operator", "ends with"],
["operator", "does not contain"], ["operator", "doesn't contain"],
["operator", "contain"], ["operator", "contains"],
["operator", "is in"], ["operator", "isn't in"], ["operator", "is not in"],
["operator", "is contained by"], ["operator", "isn't contained by"], ["operator", "is not contained by"],
["operator", "greater than"], ["operator", "greater than or equal"], ["operator", "greater than or equal to"],
["operator", "less than"], ["operator", "less than or equal"], ["operator", "less than or equal to"],
["operator", "does not come before"], ["operator", "doesn't come before"], ["operator", "comes before"],
["operator", "does not come after"], ["operator", "doesn't come after"], ["operator", "comes after"],
["operator", "is equal"], ["operator", "isn't equal"], ["operator", "is not equal"],
["operator", "is equal to"], ["operator", "isn't equal to"], ["operator", "is not equal to"],
["operator", "does not equal"], ["operator", "doesn't equal"], ["operator", "equals"],
["operator", "isn't"], ["operator", "is not"],
["operator", "ref"], ["operator", "a ref to"], ["operator", "a reference to"],
["operator", "and"], ["operator", "or"], ["operator", "div"], ["operator", "mod"], ["operator", "as"], ["operator", "not"]
]
----------------------------------------------------
Checks for most of the operators.

View File

@ -0,0 +1,13 @@
""
"foo bar"
----------------------------------------------------
[
["string", "\"\""],
["string", "\"foo bar\""]
]
----------------------------------------------------
Checks for strings.

View File

@ -0,0 +1,15 @@
%
% Some comment
% Comment " with ' quotes
----------------------------------------------------
[
["comment", "%"],
["comment", "% Some comment"],
["comment", "% Comment \" with ' quotes"]
]
----------------------------------------------------
Checks for comments.

View File

@ -0,0 +1,17 @@
@attribute
@data
@end
@relation
----------------------------------------------------
[
["keyword", "@attribute"],
["keyword", "@data"],
["keyword", "@end"],
["keyword", "@relation"]
]
----------------------------------------------------
Checks for all keywords.

View File

@ -0,0 +1,13 @@
42
0.14
----------------------------------------------------
[
["number", "42"],
["number", "0.14"]
]
----------------------------------------------------
Checks for numbers.

View File

@ -0,0 +1,13 @@
"double quoted\"' % string"
'single quoted"\' % string'
----------------------------------------------------
[
["string", "\"double quoted\\\"' % string\""],
["string", "'single quoted\"\\' % string'"]
]
----------------------------------------------------
Checks for strings.

View File

@ -0,0 +1,19 @@
TIP: Foobar
NOTE: Foo bar baz
IMPORTANT: Foobar
WARNING: Foo bar baz
CAUTION: Foobar
----------------------------------------------------
[
["admonition", "TIP:"], " Foobar\r\n",
["admonition", "NOTE:"], " Foo bar baz\r\n",
["admonition", "IMPORTANT:"], " Foobar\r\n",
["admonition", "WARNING:"], " Foo bar baz\r\n",
["admonition", "CAUTION:"], " Foobar"
]
----------------------------------------------------
Checks for admonitions.

View File

@ -0,0 +1,58 @@
:Foo bar: baz
:Foobar: Foo +
bar +
baz
:Foo bar!:
:Foobar!:
=====
:Foo bar: baz
:Foobar: Foo +
bar +
baz
:Foo bar!:
:Foobar!:
=====
|=====
|
:Foo bar: baz
:Foobar: Foo +
bar +
baz
|=====
----------------------------------------------------
[
["attribute-entry", ":Foo bar: baz"],
["attribute-entry", ":Foobar: Foo +\r\nbar +\r\nbaz"],
["attribute-entry", ":Foo bar!:"],
["attribute-entry", ":Foobar!:"],
["other-block", [
["punctuation", "====="],
["attribute-entry", ":Foo bar: baz"],
["attribute-entry", ":Foobar: Foo +\r\nbar +\r\nbaz"],
["attribute-entry", ":Foo bar!:"],
["attribute-entry", ":Foobar!:"],
["punctuation", "====="]
]],
["table", [
["punctuation", "|====="],
["punctuation", "|"],
["attribute-entry", ":Foo bar: baz"],
["attribute-entry", ":Foobar: Foo +\r\nbar +\r\nbaz"],
["punctuation", "|====="]
]]
]
----------------------------------------------------
Checks for attribute entries.

View File

@ -0,0 +1,403 @@
Foo [big red yellow-background]#obvious#
[float]
[quote,'http://en.wikipedia.org/wiki/Samuel_Johnson[Samuel Johnson]']
[quote,'&#34;with *an* image&#34; image:foo.png[] (TM)']
[NOTE]
[icon="./images/icons/wink.png"]
[icons=None, caption="My Special Note"]
[start=7]
[cols="e,m,^,>s",width="25%"]
=====
Foo [big red yellow-background]#obvious#
[float]
[quote,'http://en.wikipedia.org/wiki/Samuel_Johnson[Samuel Johnson]']
[quote,'&#34;with *an* image&#34; image:foo.png[] (TM)']
[NOTE]
[icon="./images/icons/wink.png"]
[icons=None, caption="My Special Note"]
[start=7]
[cols="e,m,^,>s",width="25%"]
=====
|=====
|
Foo [big red yellow-background]#obvious#
[float]
[quote,'http://en.wikipedia.org/wiki/Samuel_Johnson[Samuel Johnson]']
[quote,'&#34;with *an* image&#34; image:foo.png[] (TM)']
[NOTE]
[icon="./images/icons/wink.png"]
[icons=None, caption="My Special Note"]
[start=7]
[cols="e,m,^,>s",width="25%"]
|=====
latexmath:[$C = \alpha + \beta Y^{\gamma} + \epsilon$]
asciimath:[`x/x={(1,if x!=0),(text{undefined},if x=0):}`]
latexmath:[$\sum_{n=1}^\infty \frac{1}{2^n}$]
----------------------------------------------------
[
"Foo ",
["inline", [
["attributes", [
["punctuation", "["],
["attr-value", "big red yellow-background"],
["punctuation", "]"]
]],
["punctuation", "#"], "obvious", ["punctuation", "#"]
]],
["attributes", [
["punctuation", "["], ["attr-value", "float"], ["punctuation", "]"]
]],
["attributes", [
["punctuation", "["],
["attr-value", "quote"], ["punctuation", ","],
["interpreted", [
["punctuation", "'"],
["macro", [
["function", "http"], ["punctuation", ":"],
"//en.wikipedia.org/wiki/Samuel_Johnson",
["attributes", [
["punctuation", "["],
["attr-value", "Samuel Johnson"],
["punctuation", "]"]
]]
]],
["punctuation", "'"]
]],
["punctuation", "]"]
]],
["attributes", [
["punctuation", "["],
["attr-value", "quote"], ["punctuation", ","],
["interpreted", [
["punctuation", "'"],
["entity", "&#34;"],
"with ",
["inline", [
["bold", [
["punctuation", "*"], "an", ["punctuation", "*"]
]]
]],
" image",
["entity", "&#34;"],
["macro", [
["function", "image"], ["punctuation", ":"],
"foo.png",
["attributes", [
["punctuation", "["], ["punctuation", "]"]
]]
]],
["replacement", "(TM)"],
["punctuation", "'"]
]],
["punctuation", "]"]
]],
["attributes", [
["punctuation", "["], ["attr-value", "NOTE"], ["punctuation", "]"]
]],
["attributes", [
["punctuation", "["],
["variable", "icon"],
["operator", "="],
["string", "\"./images/icons/wink.png\""],
["punctuation", "]"]
]],
["attributes", [
["punctuation", "["],
["variable", "icons"],
["operator", "="],
["attr-value", "None"],
["punctuation", ","],
["variable", "caption"],
["operator", "="],
["string", "\"My Special Note\""],
["punctuation", "]"]
]],
["attributes", [
["punctuation", "["],
["variable", "start"],
["operator", "="],
["attr-value", "7"],
["punctuation", "]"]
]],
["attributes", [
["punctuation", "["],
["variable", "cols"],
["operator", "="],
["string", "\"e,m,^,>s\""],
["punctuation", ","],
["variable", "width"],
["operator", "="],
["string", "\"25%\""],
["punctuation", "]"]
]],
["other-block", [
["punctuation", "====="],
"\r\nFoo ",
["inline", [
["attributes", [
["punctuation", "["],
["attr-value", "big red yellow-background"],
["punctuation", "]"]
]],
["punctuation", "#"], "obvious", ["punctuation", "#"]
]],
["attributes", [
["punctuation", "["], ["attr-value", "float"], ["punctuation", "]"]
]],
["attributes", [
["punctuation", "["],
["attr-value", "quote"], ["punctuation", ","],
["interpreted", [
["punctuation", "'"],
["macro", [
["function", "http"], ["punctuation", ":"],
"//en.wikipedia.org/wiki/Samuel_Johnson",
["attributes", [
["punctuation", "["],
["attr-value", "Samuel Johnson"],
["punctuation", "]"]
]]
]],
["punctuation", "'"]
]],
["punctuation", "]"]
]],
["attributes", [
["punctuation", "["],
["attr-value", "quote"], ["punctuation", ","],
["interpreted", [
["punctuation", "'"],
["entity", "&#34;"],
"with ",
["inline", [
["bold", [
["punctuation", "*"], "an", ["punctuation", "*"]
]]
]],
" image",
["entity", "&#34;"],
["macro", [
["function", "image"], ["punctuation", ":"],
"foo.png",
["attributes", [
["punctuation", "["], ["punctuation", "]"]
]]
]],
["replacement", "(TM)"],
["punctuation", "'"]
]],
["punctuation", "]"]
]],
["attributes", [
["punctuation", "["], ["attr-value", "NOTE"], ["punctuation", "]"]
]],
["attributes", [
["punctuation", "["],
["variable", "icon"],
["operator", "="],
["string", "\"./images/icons/wink.png\""],
["punctuation", "]"]
]],
["attributes", [
["punctuation", "["],
["variable", "icons"],
["operator", "="],
["attr-value", "None"],
["punctuation", ","],
["variable", "caption"],
["operator", "="],
["string", "\"My Special Note\""],
["punctuation", "]"]
]],
["attributes", [
["punctuation", "["],
["variable", "start"],
["operator", "="],
["attr-value", "7"],
["punctuation", "]"]
]],
["attributes", [
["punctuation", "["],
["variable", "cols"],
["operator", "="],
["string", "\"e,m,^,>s\""],
["punctuation", ","],
["variable", "width"],
["operator", "="],
["string", "\"25%\""],
["punctuation", "]"]
]],
["punctuation", "====="]
]],
["table", [
["punctuation", "|====="],
["punctuation", "|"],
"\r\nFoo ",
["inline", [
["attributes", [
["punctuation", "["],
["attr-value", "big red yellow-background"],
["punctuation", "]"]
]],
["punctuation", "#"], "obvious", ["punctuation", "#"]
]],
["attributes", [
["punctuation", "["], ["attr-value", "float"], ["punctuation", "]"]
]],
["attributes", [
["punctuation", "["],
["attr-value", "quote"], ["punctuation", ","],
["interpreted", [
["punctuation", "'"],
["macro", [
["function", "http"], ["punctuation", ":"],
"//en.wikipedia.org/wiki/Samuel_Johnson",
["attributes", [
["punctuation", "["],
["attr-value", "Samuel Johnson"],
["punctuation", "]"]
]]
]],
["punctuation", "'"]
]],
["punctuation", "]"]
]],
["attributes", [
["punctuation", "["],
["attr-value", "quote"], ["punctuation", ","],
["interpreted", [
["punctuation", "'"],
["entity", "&#34;"],
"with ",
["inline", [
["bold", [
["punctuation", "*"], "an", ["punctuation", "*"]
]]
]],
" image",
["entity", "&#34;"],
["macro", [
["function", "image"], ["punctuation", ":"],
"foo.png",
["attributes", [
["punctuation", "["], ["punctuation", "]"]
]]
]],
["replacement", "(TM)"],
["punctuation", "'"]
]],
["punctuation", "]"]
]],
["attributes", [
["punctuation", "["], ["attr-value", "NOTE"], ["punctuation", "]"]
]],
["attributes", [
["punctuation", "["],
["variable", "icon"],
["operator", "="],
["string", "\"./images/icons/wink.png\""],
["punctuation", "]"]
]],
["attributes", [
["punctuation", "["],
["variable", "icons"],
["operator", "="],
["attr-value", "None"],
["punctuation", ","],
["variable", "caption"],
["operator", "="],
["string", "\"My Special Note\""],
["punctuation", "]"]
]],
["attributes", [
["punctuation", "["],
["variable", "start"],
["operator", "="],
["attr-value", "7"],
["punctuation", "]"]
]],
["attributes", [
["punctuation", "["],
["variable", "cols"],
["operator", "="],
["string", "\"e,m,^,>s\""],
["punctuation", ","],
["variable", "width"],
["operator", "="],
["string", "\"25%\""],
["punctuation", "]"]
]],
["punctuation", "|====="]
]],
["macro", [
["function", "latexmath"], ["punctuation", ":"],
["attributes", [
["punctuation", "["],
["quoted", [
["punctuation", "$"],
"C = \\alpha + \\beta Y^{\\gamma} + \\epsilon",
["punctuation", "$"]
]],
["punctuation", "]"]
]]
]],
["macro", [
["function", "asciimath"], ["punctuation", ":"],
["attributes", [
["punctuation", "["],
["quoted", [
["punctuation", "`"],
"x/x={(1,if x!=0),(text{undefined},if x=0):}",
["punctuation", "`"]
]],
["punctuation", "]"]
]]
]],
["macro", [
["function", "latexmath"], ["punctuation", ":"],
["attributes", [
["punctuation", "["],
["quoted", [
["punctuation", "$"],
"\\sum_{n=1}^\\infty \\frac{1}{2^n}",
["punctuation", "$"]
]],
["punctuation", "]"]
]]
]]
]
----------------------------------------------------
Checks for attributes.

View File

@ -0,0 +1,34 @@
Foobar <1>
<1> Foo
1> Bar
> Baz
|====
| Foobar <1>
<1> Foo
1> Bar
> Baz
|====
----------------------------------------------------
[
"Foobar ", ["callout", "<1>"],
["callout", "<1>"], " Foo\r\n",
["callout", "1>"], " Bar\r\n",
["callout", ">"], " Baz\r\n\r\n",
["table", [
["punctuation", "|===="],
["punctuation", "|"],
" Foobar ", ["callout", "<1>"],
["callout", "<1>"], " Foo\r\n",
["callout", "1>"], " Bar\r\n",
["callout", ">"], " Baz\r\n",
["punctuation", "|===="]
]]
]
----------------------------------------------------
Checks for callouts.

View File

@ -0,0 +1,19 @@
////
////
////
Foobar
Baz
////
----------------------------------------------------
[
["comment-block", "////\r\n////"],
["comment-block", "////\r\nFoobar\r\n\r\nBaz\r\n////"]
]
----------------------------------------------------
Checks for comment blocks.

View File

@ -0,0 +1,41 @@
//
// Foobar
******
//
// Foobar
******
|======
|
//
|
// Foobar
|======
----------------------------------------------------
[
["comment", "//"],
["comment", "// Foobar"],
["other-block", [
["punctuation", "******"],
["comment", "//"],
["comment", "// Foobar"],
["punctuation", "******"]
]],
["table", [
["punctuation", "|======"],
["punctuation", "|"],
["comment", "//"],
["punctuation", "|"],
["comment", "// Foobar"],
["punctuation", "|======"]
]]
]
----------------------------------------------------
Checks for comments.

View File

@ -0,0 +1,4 @@
module.exports = {
'&#x278a;': '<span class="token entity" title="&#x278a;">&amp;#x278a;</span>',
'&#182;': '<span class="token entity" title="&#182;">&amp;#182;</span>'
};

View File

@ -0,0 +1,48 @@
&#x278a; &#182;
&#x278a; &#182;
============
['&#x278a; &#182;']
--
&#x278a; &#182;
--
|======
| &#x278a; &#182;
|======
----------------------------------------------------
[
["entity", "&#x278a;"], ["entity", "&#182;"],
["title", [
["entity", "&#x278a;"], ["entity", "&#182;"],
["punctuation", "============"]
]],
["attributes", [
["punctuation", "["],
["interpreted", [
["punctuation", "'"],
["entity", "&#x278a;"], ["entity", "&#182;"],
["punctuation", "'"]
]],
["punctuation", "]"]
]],
["other-block", [
["punctuation", "--"],
["entity", "&#x278a;"], ["entity", "&#182;"],
["punctuation", "--"]
]],
["table", [
["punctuation", "|======"],
["punctuation", "|"],
["entity", "&#x278a;"], ["entity", "&#182;"],
["punctuation", "|======"]
]]
]
----------------------------------------------------
Checks for entities.

View File

@ -0,0 +1,14 @@
'''
''''''''''
----------------------------------------------------
[
["hr", "'''"],
["hr", "''''''''''"]
]
----------------------------------------------------
Checks for hr.

View File

@ -0,0 +1,28 @@
.
(TM) __foobar__
:bar: baz
Foo *bar* baz
// Foobar
== Foobar ==
Title
~~~~~
.....
.....
----------------------------------------------------
[
".\r\n\r\n",
["indented-block", "\t(TM) __foobar__\r\n\t:bar: baz"],
["indented-block", " Foo *bar* baz\r\n // Foobar\r\n == Foobar =="],
["indented-block", " Title\r\n ~~~~~\r\n .....\r\n ....."]
]
----------------------------------------------------
Checks for indented blocks.
Also checks that nothing gets highlighted inside.
The initial dot is required because tests are trimmed.

View File

@ -0,0 +1,521 @@
_emphasis_
``double quotes''
`single quotes'
`monospace`
'emphasis'
*strong*
+monospace+
#unquoted#
_foo _ bar baz_
`foo ' bar baz'
`foo ` bar baz`
'foo ' bar baz'
*foo * bar baz*
+foo + bar baz+
#foo # bar baz#
_foo
bar_
``foo
bar''
`foo
bar'
`foo
bar`
'foo
bar'
*foo
bar*
+foo
bar+
#foo
bar#
foo__emphasis__bar
foo**strong**bar
foo++monospace++bar
foo+++passthrough+++bar
foo##unquoted##bar
foo$$passthrough$$bar
foo~subscript~bar
foo^superscript^bar
foo{attribute-reference}bar
foo[[anchor]]bar
foo[[[bibliography anchor]]]bar
foo<<xref>>bar
foo(((indexes)))bar
foo((indexes))bar
====
_emphasis_
``double quotes''
`single quotes'
`monospace`
'emphasis'
*strong*
+monospace+
#unquoted#
__emphasis__
**strong**
++monospace++
+++passthrough+++
##unquoted##
$$passthrough$$
~subscript~
^superscript^
{attribute-reference}
[[anchor]]
[[[bibliography anchor]]]
<<xref>>
(((indexes)))
((indexes))
====
|====
|
_emphasis_
``double quotes''
`single quotes'
`monospace`
'emphasis'
*strong*
+monospace+
#unquoted#
__emphasis__
**strong**
++monospace++
+++passthrough+++
##unquoted##
$$passthrough$$
~subscript~
^superscript^
{attribute-reference}
[[anchor]]
[[[bibliography anchor]]]
<<xref>>
(((indexes)))
((indexes))
|====
['foo *bar* baz']
== foo *bar* baz ==
{names=value}
{names?value}
{names!value}
{names#value}
{names%value}
{names@regexp:value1:value2}
{names$regexp:value1:value2}
{names$regexp::value}
{foo,bar=foobar}
{foo+bar=foobar}
{counter:attrname}
----------------------------------------------------
[
["inline", [
["italic", [["punctuation", "_"], "emphasis", ["punctuation", "_"]]]
]],
["inline", [
["punctuation", "``"], "double quotes", ["punctuation", "''"]
]],
["inline", [
["punctuation", "`"], "single quotes", ["punctuation", "'"]
]],
["inline", [
["punctuation", "`"], "monospace", ["punctuation", "`"]
]],
["inline", [
["italic", [["punctuation", "'"], "emphasis", ["punctuation", "'"]]]
]],
["inline", [
["bold", [["punctuation", "*"], "strong", ["punctuation", "*"]]]
]],
["inline", [
["punctuation", "+"], "monospace", ["punctuation", "+"]
]],
["inline", [
["punctuation", "#"], "unquoted", ["punctuation", "#"]
]],
["inline", [
["italic", [["punctuation", "_"], "foo _ bar baz", ["punctuation", "_"]]]
]],
["inline", [
["punctuation", "`"], "foo ' bar baz", ["punctuation", "'"]
]],
["inline", [
["punctuation", "`"], "foo ` bar baz", ["punctuation", "`"]
]],
["inline", [
["italic", [["punctuation", "'"], "foo ' bar baz", ["punctuation", "'"]]]
]],
["inline", [
["bold", [["punctuation", "*"], "foo * bar baz", ["punctuation", "*"]]]
]],
["inline", [
["punctuation", "+"], "foo + bar baz", ["punctuation", "+"]
]],
["inline", [
["punctuation", "#"], "foo # bar baz", ["punctuation", "#"]
]],
["inline", [
["italic", [["punctuation", "_"], "foo\r\nbar", ["punctuation", "_"]]]
]],
["inline", [
["punctuation", "``"], "foo\r\nbar", ["punctuation", "''"]
]],
["inline", [
["punctuation", "`"], "foo\r\nbar", ["punctuation", "'"]
]],
["inline", [
["punctuation", "`"], "foo\r\nbar", ["punctuation", "`"]
]],
["inline", [
["italic", [["punctuation", "'"], "foo\r\nbar", ["punctuation", "'"]]]
]],
["inline", [
["bold", [["punctuation", "*"], "foo\r\nbar", ["punctuation", "*"]]]
]],
["inline", [
["punctuation", "+"], "foo\r\nbar", ["punctuation", "+"]
]],
["inline", [
["punctuation", "#"], "foo\r\nbar", ["punctuation", "#"]
]],
"\r\n\r\nfoo",
["inline", [
["italic", [["punctuation", "__"], "emphasis", ["punctuation", "__"]]]
]],
"bar\r\nfoo",
["inline", [
["bold", [["punctuation", "**"], "strong", ["punctuation", "**"]]]
]],
"bar\r\nfoo",
["inline", [
["punctuation", "++"], "monospace", ["punctuation", "++"]
]],
"bar\r\nfoo",
["inline", [
["punctuation", "+++"], "passthrough", ["punctuation", "+++"]
]],
"bar\r\nfoo",
["inline", [
["punctuation", "##"], "unquoted", ["punctuation", "##"]
]],
"bar\r\nfoo",
["inline", [
["punctuation", "$$"], "passthrough", ["punctuation", "$$"]
]],
"bar\r\nfoo",
["inline", [
["punctuation", "~"], "subscript", ["punctuation", "~"]
]],
"bar\r\nfoo",
["inline", [
["punctuation", "^"], "superscript", ["punctuation", "^"]
]],
"bar\r\nfoo",
["inline", [
["attribute-ref", [["punctuation", "{"], ["variable", "attribute-reference"], ["punctuation", "}"]]]
]],
"bar\r\nfoo",
["inline", [
["url", [["punctuation", "[["], "anchor", ["punctuation", "]]"]]]
]],
"bar\r\nfoo",
["inline", [
["url", [["punctuation", "[[["], "bibliography anchor", ["punctuation", "]]]"]]]
]],
"bar\r\nfoo",
["inline", [
["url", [["punctuation", "<<"], "xref", ["punctuation", ">>"]]]
]],
"bar\r\nfoo",
["inline", [
["punctuation", "((("], "indexes", ["punctuation", ")))"]
]],
"bar\r\nfoo",
["inline", [
["punctuation", "(("], "indexes", ["punctuation", "))"]
]],
"bar\r\n\r\n",
["other-block", [
["punctuation", "===="],
["inline", [
["italic", [["punctuation", "_"], "emphasis", ["punctuation", "_"]]]
]],
["inline", [
["punctuation", "``"], "double quotes", ["punctuation", "''"]
]],
["inline", [
["punctuation", "`"], "single quotes", ["punctuation", "'"]
]],
["inline", [
["punctuation", "`"], "monospace", ["punctuation", "`"]
]],
["inline", [
["italic", [["punctuation", "'"], "emphasis", ["punctuation", "'"]]]
]],
["inline", [
["bold", [["punctuation", "*"], "strong", ["punctuation", "*"]]]
]],
["inline", [
["punctuation", "+"], "monospace", ["punctuation", "+"]
]],
["inline", [
["punctuation", "#"], "unquoted", ["punctuation", "#"]
]],
["inline", [
["italic", [["punctuation", "__"], "emphasis", ["punctuation", "__"]]]
]],
["inline", [
["bold", [["punctuation", "**"], "strong", ["punctuation", "**"]]]
]],
["inline", [
["punctuation", "++"], "monospace", ["punctuation", "++"]
]],
["inline", [
["punctuation", "+++"], "passthrough", ["punctuation", "+++"]
]],
["inline", [
["punctuation", "##"], "unquoted", ["punctuation", "##"]
]],
["inline", [
["punctuation", "$$"], "passthrough", ["punctuation", "$$"]
]],
["inline", [
["punctuation", "~"], "subscript", ["punctuation", "~"]
]],
["inline", [
["punctuation", "^"], "superscript", ["punctuation", "^"]
]],
["inline", [
["attribute-ref", [["punctuation", "{"], ["variable", "attribute-reference"], ["punctuation", "}"]]]
]],
["inline", [
["url", [["punctuation", "[["], "anchor", ["punctuation", "]]"]]]
]],
["inline", [
["url", [["punctuation", "[[["], "bibliography anchor", ["punctuation", "]]]"]]]
]],
["inline", [
["url", [["punctuation", "<<"], "xref", ["punctuation", ">>"]]]
]],
["inline", [
["punctuation", "((("], "indexes", ["punctuation", ")))"]
]],
["inline", [
["punctuation", "(("], "indexes", ["punctuation", "))"]
]],
["punctuation", "===="]
]],
["table", [
["punctuation", "|===="],
["punctuation", "|"],
["inline", [
["italic", [["punctuation", "_"], "emphasis", ["punctuation", "_"]]]
]],
["inline", [
["punctuation", "``"], "double quotes", ["punctuation", "''"]
]],
["inline", [
["punctuation", "`"], "single quotes", ["punctuation", "'"]
]],
["inline", [
["punctuation", "`"], "monospace", ["punctuation", "`"]
]],
["inline", [
["italic", [["punctuation", "'"], "emphasis", ["punctuation", "'"]]]
]],
["inline", [
["bold", [["punctuation", "*"], "strong", ["punctuation", "*"]]]
]],
["inline", [
["punctuation", "+"], "monospace", ["punctuation", "+"]
]],
["inline", [
["punctuation", "#"], "unquoted", ["punctuation", "#"]
]],
["inline", [
["italic", [["punctuation", "__"], "emphasis", ["punctuation", "__"]]]
]],
["inline", [
["bold", [["punctuation", "**"], "strong", ["punctuation", "**"]]]
]],
["inline", [
["punctuation", "++"], "monospace", ["punctuation", "++"]
]],
["inline", [
["punctuation", "+++"], "passthrough", ["punctuation", "+++"]
]],
["inline", [
["punctuation", "##"], "unquoted", ["punctuation", "##"]
]],
["inline", [
["punctuation", "$$"], "passthrough", ["punctuation", "$$"]
]],
["inline", [
["punctuation", "~"], "subscript", ["punctuation", "~"]
]],
["inline", [
["punctuation", "^"], "superscript", ["punctuation", "^"]
]],
["inline", [
["attribute-ref", [["punctuation", "{"], ["variable", "attribute-reference"], ["punctuation", "}"]]]
]],
["inline", [
["url", [["punctuation", "[["], "anchor", ["punctuation", "]]"]]]
]],
["inline", [
["url", [["punctuation", "[[["], "bibliography anchor", ["punctuation", "]]]"]]]
]],
["inline", [
["url", [["punctuation", "<<"], "xref", ["punctuation", ">>"]]]
]],
["inline", [
["punctuation", "((("], "indexes", ["punctuation", ")))"]
]],
["inline", [
["punctuation", "(("], "indexes", ["punctuation", "))"]
]],
["punctuation", "|===="]
]],
["attributes", [
["punctuation", "["],
["interpreted", [
["punctuation", "'"],
"foo ", ["inline", [["bold", [["punctuation", "*"], "bar", ["punctuation", "*"]]]]], " baz",
["punctuation", "'"]
]],
["punctuation", "]"]
]],
["title", [
["punctuation", "=="],
" foo ", ["inline", [["bold", [["punctuation", "*"], "bar", ["punctuation", "*"]]]]], " baz ",
["punctuation", "=="]
]],
["inline", [
["attribute-ref", [
["punctuation", "{"],
["variable", "names"],
["operator", "="],
"value",
["punctuation", "}"]
]]
]],
["inline", [
["attribute-ref", [
["punctuation", "{"],
["variable", "names"],
["operator", "?"],
"value",
["punctuation", "}"]
]]
]],
["inline", [
["attribute-ref", [
["punctuation", "{"],
["variable", "names"],
["operator", "!"],
"value",
["punctuation", "}"]
]]
]],
["inline", [
["attribute-ref", [
["punctuation", "{"],
["variable", "names"],
["operator", "#"],
"value",
["punctuation", "}"]
]]
]],
["inline", [
["attribute-ref", [
["punctuation", "{"],
["variable", "names"],
["operator", "%"],
"value",
["punctuation", "}"]
]]
]],
["inline", [
["attribute-ref", [
["punctuation", "{"],
["variable", "names"],
["operator", "@"],
"regexp", ["punctuation", ":"],
"value1", ["punctuation", ":"],
"value2",
["punctuation", "}"]
]]
]],
["inline", [
["attribute-ref", [
["punctuation", "{"],
["variable", "names"],
["operator", "$"],
"regexp", ["punctuation", ":"],
"value1", ["punctuation", ":"],
"value2",
["punctuation", "}"]
]]
]],
["inline", [
["attribute-ref", [
["punctuation", "{"],
["variable", "names"],
["operator", "$"],
"regexp", ["punctuation", "::"],
"value",
["punctuation", "}"]
]]
]],
["inline", [
["attribute-ref", [
["punctuation", "{"],
["variable", "foo,bar"],
["operator", "="],
"foobar",
["punctuation", "}"]
]]
]],
["inline", [
["attribute-ref", [
["punctuation", "{"],
["variable", "foo+bar"],
["operator", "="],
"foobar",
["punctuation", "}"]
]]
]],
["inline", [
["attribute-ref", [
["punctuation", "{"],
["variable", "counter"],
["punctuation", ":"],
"attrname",
["punctuation", "}"]
]]
]]
]
----------------------------------------------------
Checks for all kinds of inline quoted text.

View File

@ -0,0 +1,18 @@
Foo +
bar
* Foo
+
bar
----------------------------------------------------
[
"Foo ", ["line-continuation", "+"], "\r\nbar\r\n\r\n",
["list-punctuation", "*"], " Foo\r\n",
["line-continuation", "+"], "\r\nbar"
]
----------------------------------------------------
Checks for line continuations.

View File

@ -0,0 +1,73 @@
In::
Lorem::
Foo bar baz
Dolor:::
Ipsum::::
Donec;;
Foobar
____
In::
Lorem::
Foo bar baz
Dolor:::
Ipsum::::
Donec;;
Foobar
____
|========
|
In::
Lorem::
Foo bar baz
Dolor:::
Ipsum::::
Donec;;
Foobar
|========
----------------------------------------------------
[
["list-label", "In::"],
["list-label", "Lorem::"],
"\r\n Foo bar baz\r\n",
["list-label", "Dolor:::"],
["list-label", "Ipsum::::"],
["list-label", "Donec;;"],
"\r\n Foobar\r\n\r\n",
["other-block", [
["punctuation", "____"],
["list-label", "In::"],
["list-label", "Lorem::"],
"\r\n Foo bar baz\r\n",
["list-label", "Dolor:::"],
["list-label", "Ipsum::::"],
["list-label", "Donec;;"],
"\r\n Foobar\r\n",
["punctuation", "____"]
]],
["table", [
["punctuation", "|========"],
["punctuation", "|"],
["list-label", "In::"],
["list-label", "Lorem::"],
"\r\n Foo bar baz\r\n",
["list-label", "Dolor:::"],
["list-label", "Ipsum::::"],
["list-label", "Donec;;"],
"\r\n Foobar\r\n",
["punctuation", "|========"]
]]
]
----------------------------------------------------
Checks for list labels.

View File

@ -0,0 +1,77 @@
- Foo
* Foo
** Foo bar
*** Foo
1. Foo
2. Foo bar
42. Foo
**** Foo
***** Foo bar
. Foo
.. Foo
a. Foo
b. Foo
z. Foo
... Foo bar
.... Foo
i) Foo
vi) Bar
xxvii) Baz
..... Foo
____
. 1
.. 2
____
|===
|
xi) a
xii) b
|===
----------------------------------------------------
[
["list-punctuation", "-"], " Foo\r\n",
["list-punctuation", "*"], " Foo\r\n",
["list-punctuation", "**"], " Foo bar\r\n",
["list-punctuation", "***"], " Foo\r\n\t",
["list-punctuation", "1."], " Foo\r\n\t",
["list-punctuation", "2."], " Foo bar\r\n\t",
["list-punctuation", "42."], " Foo\r\n",
["list-punctuation", "****"], " Foo\r\n",
["list-punctuation", "*****"], " Foo bar\r\n\r\n",
["list-punctuation", "."], " Foo\r\n",
["list-punctuation", ".."], " Foo\r\n ",
["list-punctuation", "a."], " Foo\r\n ",
["list-punctuation", "b."], " Foo\r\n ",
["list-punctuation", "z."], " Foo\r\n",
["list-punctuation", "..."], " Foo bar\r\n",
["list-punctuation", "...."], " Foo\r\n\t",
["list-punctuation", "i)"], " Foo\r\n\t",
["list-punctuation", "vi)"], " Bar\r\n\t",
["list-punctuation", "xxvii)"], " Baz\r\n",
["list-punctuation", "....."], " Foo\r\n\r\n",
["other-block", [
["punctuation", "____"],
["list-punctuation", "."], " 1\r\n",
["list-punctuation", ".."], " 2\r\n",
["punctuation", "____"]
]],
["table", [
["punctuation", "|==="],
["punctuation", "|"],
["list-punctuation", "xi)"], " a\r\n",
["list-punctuation", "xii)"], " b\r\n",
["punctuation", "|==="]
]]
]
----------------------------------------------------
Checks for list punctuation.

View File

@ -0,0 +1,46 @@
----
== Foobar ==
Bar _baz_ (TM) <1>
* Foo <2>
<1> Foobar
2> Baz
----
.......
.Foo
. Foobar <1>
include::addendum.txt <2>
> Foo
> Bar
__Foo__**bar**{baz}
.......
----------------------------------------------------
[
["literal-block", [
["punctuation", "----"],
"\r\n== Foobar ==\r\nBar _baz_ (TM) ",
["callout", "<1>"],
"\r\n* Foo ",
["callout", "<2>"],
["callout", "<1>"], " Foobar\r\n",
["callout", "2>"], " Baz\r\n",
["punctuation", "----"]
]],
["literal-block", [
["punctuation", "......."],
"\r\n.Foo\r\n. Foobar ",
["callout", "<1>"],
"\r\ninclude::addendum.txt ",
["callout", "<2>"],
["callout", ">"], " Foo\r\n",
["callout", ">"], " Bar\r\n__Foo__**bar**{baz}\r\n",
["punctuation", "......."]
]]
]
----------------------------------------------------
Checks for literal blocks and listing blocks.
Also checks that nothing gets highlighted inside expect callouts.

View File

@ -0,0 +1,250 @@
footnote:[An example footnote.]
indexterm:[Tigers,Big cats]
http://www.docbook.org/[DocBook.org]
include::chapt1.txt[tabsize=2]
mailto:srackham@gmail.com[]
image:screen-thumbnail.png[height=32,link="screen.png"]
== Foo image:foo.jpg[] ==
--
footnote:[An example footnote.]
indexterm:[Tigers,Big cats]
http://www.docbook.org/[DocBook.org]
include::chapt1.txt[tabsize=2]
mailto:srackham@gmail.com[]
image:screen-thumbnail.png[height=32,link="screen.png"]
--
|====
|
footnote:[An example footnote.]
indexterm:[Tigers,Big cats]
http://www.docbook.org/[DocBook.org]
include::chapt1.txt[tabsize=2]
mailto:srackham@gmail.com[]
image:screen-thumbnail.png[height=32,link="screen.png"]
|====
----------------------------------------------------
[
["macro", [
["function", "footnote"], ["punctuation", ":"],
["attributes", [
["punctuation", "["],
["attr-value", "An example footnote."],
["punctuation", "]"]
]]
]],
["macro", [
["function", "indexterm"], ["punctuation", ":"],
["attributes", [
["punctuation", "["],
["attr-value", "Tigers"],
["punctuation", ","],
["attr-value", "Big cats"],
["punctuation", "]"]
]]
]],
["macro", [
["function", "http"], ["punctuation", ":"],
"//www.docbook.org/",
["attributes", [
["punctuation", "["],
["attr-value", "DocBook.org"],
["punctuation", "]"]
]]
]],
["macro", [
["function", "include"], ["punctuation", "::"],
"chapt1.txt",
["attributes", [
["punctuation", "["],
["variable", "tabsize"],
["operator", "="],
["attr-value", "2"],
["punctuation", "]"]
]]
]],
["macro", [
["function", "mailto"], ["punctuation", ":"],
"srackham@gmail.com",
["attributes", [
["punctuation", "["], ["punctuation", "]"]
]]
]],
["macro", [
["function", "image"], ["punctuation", ":"],
"screen-thumbnail.png",
["attributes", [
["punctuation", "["],
["variable", "height"],
["operator", "="],
["attr-value", "32"],
["punctuation", ","],
["variable", "link"],
["operator", "="],
["string", "\"screen.png\""],
["punctuation", "]"]
]]
]],
["title", [
["punctuation", "=="],
" Foo ",
["macro", [
["function", "image"], ["punctuation", ":"],
"foo.jpg",
["attributes", [
["punctuation", "["], ["punctuation", "]"]
]]
]],
["punctuation", "=="]
]],
["other-block", [
["punctuation", "--"],
["macro", [
["function", "footnote"], ["punctuation", ":"],
["attributes", [
["punctuation", "["],
["attr-value", "An example footnote."],
["punctuation", "]"]
]]
]],
["macro", [
["function", "indexterm"], ["punctuation", ":"],
["attributes", [
["punctuation", "["],
["attr-value", "Tigers"],
["punctuation", ","],
["attr-value", "Big cats"],
["punctuation", "]"]
]]
]],
["macro", [
["function", "http"], ["punctuation", ":"],
"//www.docbook.org/",
["attributes", [
["punctuation", "["],
["attr-value", "DocBook.org"],
["punctuation", "]"]
]]
]],
["macro", [
["function", "include"], ["punctuation", "::"],
"chapt1.txt",
["attributes", [
["punctuation", "["],
["variable", "tabsize"],
["operator", "="],
["attr-value", "2"],
["punctuation", "]"]
]]
]],
["macro", [
["function", "mailto"], ["punctuation", ":"],
"srackham@gmail.com",
["attributes", [
["punctuation", "["], ["punctuation", "]"]
]]
]],
["macro", [
["function", "image"], ["punctuation", ":"],
"screen-thumbnail.png",
["attributes", [
["punctuation", "["],
["variable", "height"],
["operator", "="],
["attr-value", "32"],
["punctuation", ","],
["variable", "link"],
["operator", "="],
["string", "\"screen.png\""],
["punctuation", "]"]
]]
]],
["punctuation", "--"]
]],
["table", [
["punctuation", "|===="],
["punctuation", "|"],
["macro", [
["function", "footnote"], ["punctuation", ":"],
["attributes", [
["punctuation", "["],
["attr-value", "An example footnote."],
["punctuation", "]"]
]]
]],
["macro", [
["function", "indexterm"], ["punctuation", ":"],
["attributes", [
["punctuation", "["],
["attr-value", "Tigers"],
["punctuation", ","],
["attr-value", "Big cats"],
["punctuation", "]"]
]]
]],
["macro", [
["function", "http"], ["punctuation", ":"],
"//www.docbook.org/",
["attributes", [
["punctuation", "["],
["attr-value", "DocBook.org"],
["punctuation", "]"]
]]
]],
["macro", [
["function", "include"], ["punctuation", "::"],
"chapt1.txt",
["attributes", [
["punctuation", "["],
["variable", "tabsize"],
["operator", "="],
["attr-value", "2"],
["punctuation", "]"]
]]
]],
["macro", [
["function", "mailto"], ["punctuation", ":"],
"srackham@gmail.com",
["attributes", [
["punctuation", "["], ["punctuation", "]"]
]]
]],
["macro", [
["function", "image"], ["punctuation", ":"],
"screen-thumbnail.png",
["attributes", [
["punctuation", "["],
["variable", "height"],
["operator", "="],
["attr-value", "32"],
["punctuation", ","],
["variable", "link"],
["operator", "="],
["string", "\"screen.png\""],
["punctuation", "]"]
]]
]],
["punctuation", "|===="]
]]
]
----------------------------------------------------
Checks for macros.

View File

@ -0,0 +1,45 @@
****
Sidebar block <1>
****
______
Quote block <2>
______
========
Example block <3>
========
--
Open block <4>
--
----------------------------------------------------
[
["other-block", [
["punctuation", "****"],
"\r\nSidebar block <1>\r\n",
["punctuation", "****"]
]],
["other-block", [
["punctuation", "______"],
"\r\nQuote block <2>\r\n",
["punctuation", "______"]
]],
["other-block", [
["punctuation", "========"],
"\r\nExample block <3>\r\n",
["punctuation", "========"]
]],
["other-block", [
["punctuation", "--"],
"\r\nOpen block <4>\r\n",
["punctuation", "--"]
]]
]
----------------------------------------------------
Checks for sidebar blocks, quote blocks, example blocks and open blocks.
Also checks that callouts are not highlighted.

View File

@ -0,0 +1,14 @@
<<<
<<<<<<<<<<<<<
----------------------------------------------------
[
["page-break", "<<<"],
["page-break", "<<<<<<<<<<<<<"]
]
----------------------------------------------------
Checks for page breaks.

View File

@ -0,0 +1,29 @@
++++
.Fo__o__bar *baz*
Fo(((o)))bar baz
* Foobar baz
include::addendum.txt[]
++++
----------------------------------------------------
[
["passthrough-block", [
["punctuation", "++++"],
"\r\n.Fo__o__bar *baz*\r\nFo(((o)))bar baz\r\n* Foobar baz\r\n",
["macro", [
["function", "include"],
["punctuation", "::"],
"addendum.txt",
["attributes", [
["punctuation", "["], ["punctuation", "]"]
]]
]],
["punctuation", "++++"]
]]
]
----------------------------------------------------
Checks for passthrough blocks.
Also checks that nothing gets highlighted inside expect macros.

View File

@ -0,0 +1,48 @@
(C) (TM) (R)
(C) (TM) (R)
============
['(C) (TM) (R)']
--
(C) (TM) (R)
--
|======
| (C) (TM) (R)
|======
----------------------------------------------------
[
["replacement", "(C)"], ["replacement", "(TM)"], ["replacement", "(R)"],
["title", [
["replacement", "(C)"], ["replacement", "(TM)"], ["replacement", "(R)"],
["punctuation", "============"]
]],
["attributes", [
["punctuation", "["],
["interpreted", [
["punctuation", "'"],
["replacement", "(C)"], ["replacement", "(TM)"], ["replacement", "(R)"],
["punctuation", "'"]
]],
["punctuation", "]"]
]],
["other-block", [
["punctuation", "--"],
["replacement", "(C)"], ["replacement", "(TM)"], ["replacement", "(R)"],
["punctuation", "--"]
]],
["table", [
["punctuation", "|======"],
["punctuation", "|"],
["replacement", "(C)"], ["replacement", "(TM)"], ["replacement", "(R)"],
["punctuation", "|======"]
]]
]
----------------------------------------------------
Checks for replacements.

View File

@ -0,0 +1,61 @@
|===
|1
|===
|============================
|1 >s|2 |3 |4
^|5 2.2+^.^|6 .3+<.>m|7
2*^|8
|9 2+>|10
|============================
|==============================================
|Normal cell
|Cell with nested table
!==============================================
!Nested table cell 1 !Nested table cell 2
!==============================================
|==============================================
----------------------------------------------------
[
["table", [
["punctuation", "|==="],
["punctuation", "|"], "1\r\n",
["punctuation", "|==="]
]],
["table", [
["punctuation", "|============================"],
["punctuation", "|"], "1 ",
["specifiers", ">s"], ["punctuation", "|"], "2 ",
["punctuation", "|"], "3 ",
["punctuation", "|"], "4\r\n",
["specifiers", "^"], ["punctuation", "|"], "5 ",
["specifiers", "2.2+^.^"], ["punctuation", "|"], "6 ",
["specifiers", ".3+<.>m"], ["punctuation", "|"], "7\r\n",
["specifiers", "2*^"], ["punctuation", "|"], "8\r\n",
["punctuation", "|"], "9 ",
["specifiers", "2+>"], ["punctuation", "|"], "10\r\n",
["punctuation", "|============================"]
]],
["table", [
["punctuation", "|=============================================="],
["punctuation", "|"], "Normal cell\r\n\r\n",
["punctuation", "|"], "Cell with nested table\r\n\r\n",
["punctuation", "!=============================================="],
["punctuation", "!"], "Nested table cell 1 ",
["punctuation", "!"], "Nested table cell 2\r\n",
["punctuation", "!=============================================="],
["punctuation", "|=============================================="]
]]
]
----------------------------------------------------
Checks for tables.

View File

@ -0,0 +1,80 @@
Foobar
======
Foobar
------
Foobar
~~~~~~
Foobar
^^^^^^
Foo
+++
= Foo bar baz =
== Foo bar baz
=== Foo bar baz ===
==== Foo bar baz
===== Foo bar baz =====
.Foo bar baz
----------------------------------------------------
[
["title", [
"Foobar\r\n",
["punctuation", "======"]
]],
["title", [
"Foobar\r\n",
["punctuation", "------"]
]],
["title", [
"Foobar\r\n",
["punctuation", "~~~~~~"]
]],
["title", [
"Foobar\r\n",
["punctuation", "^^^^^^"]
]],
["title", [
"Foo\r\n",
["punctuation", "+++"]
]],
["title", [
["punctuation", "="],
" Foo bar baz ",
["punctuation", "="]
]],
["title", [
["punctuation", "=="],
" Foo bar baz"
]],
["title", [
["punctuation", "==="],
" Foo bar baz ",
["punctuation", "==="]
]],
["title", [
["punctuation", "===="],
" Foo bar baz"
]],
["title", [
["punctuation", "====="],
" Foo bar baz ",
["punctuation", "====="]
]],
["title", [
["punctuation", "."],
"Foo bar baz"
]]
]
----------------------------------------------------
Checks for titles.

View File

@ -0,0 +1,13 @@
;
; foo bar baz
-------------------------
[
["comment", ";"],
["comment", "; foo bar baz"]
]
-------------------------
Check for comments

View File

@ -0,0 +1,12 @@
.segment CODE
-------------------------
[
["directive", ".segment"],
" CODE"
]
-------------------------
Check for directives

View File

@ -0,0 +1,18 @@
LDA #127
STA $8000
LDX #%10001010
-------------------------
[
["opcode", "LDA"],
["decimalnumber", "#127"],
["opcode", "STA"],
["hexnumber", "$8000"],
["opcode", "LDX"],
["binarynumber", "#%10001010"]
]
-------------------------
Check for numbers

View File

@ -0,0 +1,17 @@
LDA
BNE
inx
clc
-------------------------------------
[
["opcode", "LDA"],
["opcode", "BNE"],
["opcode", "inx"],
["opcode", "clc"]
]
-------------------------------------
Check for opcodes

View File

@ -0,0 +1,17 @@
LDA $8000,x
ASL A
-------------------------
[
["opcode", "LDA"],
["hexnumber", "$8000"],
",",
["register", "x"],
["opcode", "ASL"],
["register", "A"]
]
-------------------------
Check for registers

View File

@ -0,0 +1,12 @@
.include "header.asm"
-------------------------
[
["directive", ".include"],
["string", "\"header.asm\""]
]
-------------------------
Check for strings

View File

@ -0,0 +1,16 @@
<%----%>
<%--foo--%>
<%-- foo
bar --%>
----------------------------------------------------
[
["asp comment", "<%----%>"],
["asp comment", "<%--foo--%>"],
["asp comment", "<%-- foo\r\nbar --%>"]
]
----------------------------------------------------
Checks for comments.

View File

@ -0,0 +1,92 @@
<%@Assembly foo="bar"%>
<% @Control foo="bar" %>
<%@ Implements%>
<%@Import%>
<%@Master%>
<%@MasterType%>
<%@OutputCache%>
<%@Page%>
<%@PreviousPageType%>
<%@Reference%>
<%@Register%>
----------------------------------------------------
[
["page-directive tag", [
["page-directive tag", "<%@Assembly"],
["attr-name", [
"foo"
]],
["attr-value", [
["punctuation", "="],
["punctuation", "\""],
"bar",
["punctuation", "\""]
]],
["page-directive tag", "%>"]
]],
["page-directive tag", [
["page-directive tag", "<% @Control"],
["attr-name", [
"foo"
]],
["attr-value", [
["punctuation", "="],
["punctuation", "\""],
"bar",
["punctuation", "\""]
]],
["page-directive tag", "%>"]
]],
["page-directive tag", [
["page-directive tag", "<%@ Implements"],
["page-directive tag", "%>"]
]],
["page-directive tag", [
["page-directive tag", "<%@Import"],
["page-directive tag", "%>"]
]],
["page-directive tag", [
["page-directive tag", "<%@Master"],
["page-directive tag", "%>"]
]],
["page-directive tag", [
["page-directive tag", "<%@MasterType"],
["page-directive tag", "%>"]
]],
["page-directive tag", [
["page-directive tag", "<%@OutputCache"],
["page-directive tag", "%>"]
]],
["page-directive tag", [
["page-directive tag", "<%@Page"],
["page-directive tag", "%>"]
]],
["page-directive tag", [
["page-directive tag", "<%@PreviousPageType"],
["page-directive tag", "%>"]
]],
["page-directive tag", [
["page-directive tag", "<%@Reference"],
["page-directive tag", "%>"]
]],
["page-directive tag", [
["page-directive tag", "<%@Register"],
["page-directive tag", "%>"]
]]
]
----------------------------------------------------
Checks for all page directives.

View File

@ -0,0 +1,13 @@
true
false
----------------------------------------------------
[
["boolean", "true"],
["boolean", "false"]
]
----------------------------------------------------
Checks for booleans

View File

@ -0,0 +1,147 @@
abs
acos
asc
asin
atan
ceil
chr
class
cos
dllcall
exp
fileexist
Fileopen
floor
il_add
il_create
il_destroy
instr
substr
isfunc
islabel
IsObject
ln
log
lv_add
lv_delete
lv_deletecol
lv_getcount
lv_getnext
lv_gettext
lv_insert
lv_insertcol
lv_modify
lv_modifycol
lv_setimagelist
mod
onmessage
numget
numput
registercallback
regexmatch
regexreplace
round
sin
tan
sqrt
strlen
sb_seticon
sb_setparts
sb_settext
strsplit
tv_add
tv_delete
tv_getchild
tv_getcount
tv_getnext
tv_get
tv_getparent
tv_getprev
tv_getselection
tv_gettext
tv_modify
varsetcapacity
winactive
winexist
__New
__Call
__Get
__Set
----------------------------------------------------
[
["builtin", "abs"],
["builtin", "acos"],
["builtin", "asc"],
["builtin", "asin"],
["builtin", "atan"],
["builtin", "ceil"],
["builtin", "chr"],
["builtin", "class"],
["builtin", "cos"],
["builtin", "dllcall"],
["builtin", "exp"],
["builtin", "fileexist"],
["builtin", "Fileopen"],
["builtin", "floor"],
["builtin", "il_add"],
["builtin", "il_create"],
["builtin", "il_destroy"],
["builtin", "instr"],
["builtin", "substr"],
["builtin", "isfunc"],
["builtin", "islabel"],
["builtin", "IsObject"],
["builtin", "ln"],
["builtin", "log"],
["builtin", "lv_add"],
["builtin", "lv_delete"],
["builtin", "lv_deletecol"],
["builtin", "lv_getcount"],
["builtin", "lv_getnext"],
["builtin", "lv_gettext"],
["builtin", "lv_insert"],
["builtin", "lv_insertcol"],
["builtin", "lv_modify"],
["builtin", "lv_modifycol"],
["builtin", "lv_setimagelist"],
["builtin", "mod"],
["builtin", "onmessage"],
["builtin", "numget"],
["builtin", "numput"],
["builtin", "registercallback"],
["builtin", "regexmatch"],
["builtin", "regexreplace"],
["builtin", "round"],
["builtin", "sin"],
["builtin", "tan"],
["builtin", "sqrt"],
["builtin", "strlen"],
["builtin", "sb_seticon"],
["builtin", "sb_setparts"],
["builtin", "sb_settext"],
["builtin", "strsplit"],
["builtin", "tv_add"],
["builtin", "tv_delete"],
["builtin", "tv_getchild"],
["builtin", "tv_getcount"],
["builtin", "tv_getnext"],
["builtin", "tv_get"],
["builtin", "tv_getparent"],
["builtin", "tv_getprev"],
["builtin", "tv_getselection"],
["builtin", "tv_gettext"],
["builtin", "tv_modify"],
["builtin", "varsetcapacity"],
["builtin", "winactive"],
["builtin", "winexist"],
["builtin", "__New"],
["builtin", "__Call"],
["builtin", "__Get"],
["builtin", "__Set"]
]
----------------------------------------------------
Checks for all builtins.

View File

@ -0,0 +1,13 @@
;foo
; bar
----------------------------------------------------
[
["comment", ";foo"],
["comment", "; bar"]
]
----------------------------------------------------
Checks for comments.

View File

@ -0,0 +1,275 @@
a_ahkpath
a_ahkversion
a_appdata
a_appdatacommon
a_autotrim
a_batchlines
a_caretx
a_carety
a_computername
a_controldelay
a_cursor
a_dd
a_ddd
a_dddd
a_defaultmousespeed
a_desktop
a_desktopcommon
a_detecthiddentext
a_detecthiddenwindows
a_endchar
a_eventinfo
a_exitreason
a_formatfloat
a_formatinteger
a_gui
a_guievent
a_guicontrol
a_guicontrolevent
a_guiheight
a_guiwidth
a_guix
a_guiy
a_hour
a_iconfile
a_iconhidden
a_iconnumber
a_icontip
a_index
a_ipaddress1
a_ipaddress2
a_ipaddress3
a_ipaddress4
a_isadmin
a_iscompiled
a_iscritical
a_ispaused
a_issuspended
a_isunicode
a_keydelay
a_language
a_lasterror
a_linefile
a_linenumber
a_loopfield
a_loopfileattrib
a_loopfiledir
a_loopfileext
a_loopfilefullpath
a_loopfilelongpath
a_loopfilename
a_loopfileshortname
a_loopfileshortpath
a_loopfilesize
a_loopfilesizekb
a_loopfilesizemb
a_loopfiletimeaccessed
a_loopfiletimecreated
a_loopfiletimemodified
a_loopreadline
a_loopregkey
a_loopregname
a_loopregsubkey
a_loopregtimemodified
a_loopregtype
a_mday
a_min
a_mm
a_mmm
a_mmmm
a_mon
a_mousedelay
a_msec
a_mydocuments
a_now
a_nowutc
a_numbatchlines
a_ostype
a_osversion
a_priorhotkey
programfiles
a_programfiles
a_programs
a_programscommon
a_screenheight
a_screenwidth
a_scriptdir
a_scriptfullpath
a_scriptname
a_sec
a_space
a_startmenu
a_startmenucommon
a_startup
a_startupcommon
a_stringcasesense
a_tab
a_temp
a_thisfunc
a_thishotkey
a_thislabel
a_thismenu
a_thismenuitem
a_thismenuitempos
a_tickcount
a_timeidle
a_timeidlephysical
a_timesincepriorhotkey
a_timesincethishotkey
a_titlematchmode
a_titlematchmodespeed
a_username
a_wday
a_windelay
a_windir
a_workingdir
a_yday
a_year
a_yweek
a_yyyy
clipboard
clipboardall
comspec
errorlevel
----------------------------------------------------
[
["constant", "a_ahkpath"],
["constant", "a_ahkversion"],
["constant", "a_appdata"],
["constant", "a_appdatacommon"],
["constant", "a_autotrim"],
["constant", "a_batchlines"],
["constant", "a_caretx"],
["constant", "a_carety"],
["constant", "a_computername"],
["constant", "a_controldelay"],
["constant", "a_cursor"],
["constant", "a_dd"],
["constant", "a_ddd"],
["constant", "a_dddd"],
["constant", "a_defaultmousespeed"],
["constant", "a_desktop"],
["constant", "a_desktopcommon"],
["constant", "a_detecthiddentext"],
["constant", "a_detecthiddenwindows"],
["constant", "a_endchar"],
["constant", "a_eventinfo"],
["constant", "a_exitreason"],
["constant", "a_formatfloat"],
["constant", "a_formatinteger"],
["constant", "a_gui"],
["constant", "a_guievent"],
["constant", "a_guicontrol"],
["constant", "a_guicontrolevent"],
["constant", "a_guiheight"],
["constant", "a_guiwidth"],
["constant", "a_guix"],
["constant", "a_guiy"],
["constant", "a_hour"],
["constant", "a_iconfile"],
["constant", "a_iconhidden"],
["constant", "a_iconnumber"],
["constant", "a_icontip"],
["constant", "a_index"],
["constant", "a_ipaddress1"],
["constant", "a_ipaddress2"],
["constant", "a_ipaddress3"],
["constant", "a_ipaddress4"],
["constant", "a_isadmin"],
["constant", "a_iscompiled"],
["constant", "a_iscritical"],
["constant", "a_ispaused"],
["constant", "a_issuspended"],
["constant", "a_isunicode"],
["constant", "a_keydelay"],
["constant", "a_language"],
["constant", "a_lasterror"],
["constant", "a_linefile"],
["constant", "a_linenumber"],
["constant", "a_loopfield"],
["constant", "a_loopfileattrib"],
["constant", "a_loopfiledir"],
["constant", "a_loopfileext"],
["constant", "a_loopfilefullpath"],
["constant", "a_loopfilelongpath"],
["constant", "a_loopfilename"],
["constant", "a_loopfileshortname"],
["constant", "a_loopfileshortpath"],
["constant", "a_loopfilesize"],
["constant", "a_loopfilesizekb"],
["constant", "a_loopfilesizemb"],
["constant", "a_loopfiletimeaccessed"],
["constant", "a_loopfiletimecreated"],
["constant", "a_loopfiletimemodified"],
["constant", "a_loopreadline"],
["constant", "a_loopregkey"],
["constant", "a_loopregname"],
["constant", "a_loopregsubkey"],
["constant", "a_loopregtimemodified"],
["constant", "a_loopregtype"],
["constant", "a_mday"],
["constant", "a_min"],
["constant", "a_mm"],
["constant", "a_mmm"],
["constant", "a_mmmm"],
["constant", "a_mon"],
["constant", "a_mousedelay"],
["constant", "a_msec"],
["constant", "a_mydocuments"],
["constant", "a_now"],
["constant", "a_nowutc"],
["constant", "a_numbatchlines"],
["constant", "a_ostype"],
["constant", "a_osversion"],
["constant", "a_priorhotkey"],
["constant", "programfiles"],
["constant", "a_programfiles"],
["constant", "a_programs"],
["constant", "a_programscommon"],
["constant", "a_screenheight"],
["constant", "a_screenwidth"],
["constant", "a_scriptdir"],
["constant", "a_scriptfullpath"],
["constant", "a_scriptname"],
["constant", "a_sec"],
["constant", "a_space"],
["constant", "a_startmenu"],
["constant", "a_startmenucommon"],
["constant", "a_startup"],
["constant", "a_startupcommon"],
["constant", "a_stringcasesense"],
["constant", "a_tab"],
["constant", "a_temp"],
["constant", "a_thisfunc"],
["constant", "a_thishotkey"],
["constant", "a_thislabel"],
["constant", "a_thismenu"],
["constant", "a_thismenuitem"],
["constant", "a_thismenuitempos"],
["constant", "a_tickcount"],
["constant", "a_timeidle"],
["constant", "a_timeidlephysical"],
["constant", "a_timesincepriorhotkey"],
["constant", "a_timesincethishotkey"],
["constant", "a_titlematchmode"],
["constant", "a_titlematchmodespeed"],
["constant", "a_username"],
["constant", "a_wday"],
["constant", "a_windelay"],
["constant", "a_windir"],
["constant", "a_workingdir"],
["constant", "a_yday"],
["constant", "a_year"],
["constant", "a_yweek"],
["constant", "a_yyyy"],
["constant", "clipboard"],
["constant", "clipboardall"],
["constant", "comspec"],
["constant", "errorlevel"]
]
----------------------------------------------------
Checks for all constants.

View File

@ -0,0 +1,15 @@
foo(
foo_bar(
----------------------------------------------------
[
["function", "foo"],
["punctuation", "("],
["function", "foo_bar"],
["punctuation", "("]
]
----------------------------------------------------
Checks for functions.

View File

@ -0,0 +1,67 @@
#AllowSameLineComments
#ClipboardTimeout
#CommentFlag
#ErrorStdOut
#EscapeChar
#HotkeyInterval
#HotkeyModifierTimeout
#Hotstring
#IfWinActive
#IfWinExist
#IfWinNotActive
#IfWinNotExist
#Include
#IncludeAgain
#InstallKeybdHook
#InstallMouseHook
#KeyHistory
#LTrim
#MaxHotkeysPerInterval
#MaxMem
#MaxThreads
#MaxThreadsBuffer
#MaxThreadsPerHotkey
#NoEnv
#NoTrayIcon
#Persistent
#SingleInstance
#UseHook
#WinActivateForce
----------------------------------------------------
[
["important", "#AllowSameLineComments"],
["important", "#ClipboardTimeout"],
["important", "#CommentFlag"],
["important", "#ErrorStdOut"],
["important", "#EscapeChar"],
["important", "#HotkeyInterval"],
["important", "#HotkeyModifierTimeout"],
["important", "#Hotstring"],
["important", "#IfWinActive"],
["important", "#IfWinExist"],
["important", "#IfWinNotActive"],
["important", "#IfWinNotExist"],
["important", "#Include"],
["important", "#IncludeAgain"],
["important", "#InstallKeybdHook"],
["important", "#InstallMouseHook"],
["important", "#KeyHistory"],
["important", "#LTrim"],
["important", "#MaxHotkeysPerInterval"],
["important", "#MaxMem"],
["important", "#MaxThreads"],
["important", "#MaxThreadsBuffer"],
["important", "#MaxThreadsPerHotkey"],
["important", "#NoEnv"],
["important", "#NoTrayIcon"],
["important", "#Persistent"],
["important", "#SingleInstance"],
["important", "#UseHook"],
["important", "#WinActivateForce"]
]
----------------------------------------------------
Checks for all important keywords.

View File

@ -0,0 +1,537 @@
Abort
AboveNormal
Add
ahk_class
ahk_group
ahk_id
ahk_pid
All
Alnum
Alpha
AltSubmit
AltTab
AltTabAndMenu
AltTabMenu
AltTabMenuDismiss
AlwaysOnTop
AutoSize
Background
BackgroundTrans
BelowNormal
between
BitAnd
BitNot
BitOr
BitShiftLeft
BitShiftRight
BitXOr
Bold
Border
Button
ByRef
Checkbox
Checked
CheckedGray
Choose
ChooseString
Close
Color
ComboBox
Contains
ControlList
Count
Date
DateTime
Days
DDL
Default
DeleteAll
Delimiter
Deref
Destroy
Digit
Disable
Disabled
DropDownList
Edit
Eject
Else
Enable
Enabled
Error
Exist
Expand
ExStyle
FileSystem
First
Flash
Float
FloatFast
Focus
Font
for
global
Grid
Group
GroupBox
GuiClose
GuiContextMenu
GuiDropFiles
GuiEscape
GuiSize
Hdr
Hidden
Hide
High
HKCC
HKCR
HKCU
HKEY_CLASSES_ROOT
HKEY_CURRENT_CONFIG
HKEY_CURRENT_USER
HKEY_LOCAL_MACHINE
HKEY_USERS
HKLM
HKU
Hours
HScroll
Icon
IconSmall
ID
IDLast
If
IfEqual
IfExist
IfGreater
IfGreaterOrEqual
IfInString
IfLess
IfLessOrEqual
IfMsgBox
IfNotEqual
IfNotExist
IfNotInString
IfWinActive
IfWinExist
IfWinNotActive
IfWinNotExist
Ignore
ImageList
in
Integer
IntegerFast
Interrupt
is
italic
Join
Label
LastFound
LastFoundExist
Limit
Lines
List
ListBox
ListView
local
Lock
Logoff
Low
Lower
Lowercase
MainWindow
Margin
Maximize
MaximizeBox
MaxSize
Minimize
MinimizeBox
MinMax
MinSize
Minutes
MonthCal
Mouse
Move
Multi
NA
No
NoActivate
NoDefault
NoHide
NoIcon
NoMainWindow
norm
Normal
NoSort
NoSortHdr
NoStandard
Not
NoTab
NoTimers
Number
Off
Ok
On
OwnDialogs
Owner
Parse
Password
Picture
Pixel
Pos
Pow
Priority
ProcessName
Radio
Range
Read
ReadOnly
Realtime
Redraw
REG_BINARY
REG_DWORD
REG_EXPAND_SZ
REG_MULTI_SZ
REG_SZ
Region
Relative
Rename
Report
Resize
Restore
Retry
RGB
Screen
Seconds
Section
Serial
SetLabel
ShiftAltTab
Show
Single
Slider
SortDesc
Standard
static
Status
StatusBar
StatusCD
strike
Style
Submit
SysMenu
Tab2
TabStop
Text
Theme
Tile
ToggleCheck
ToggleEnable
ToolWindow
Top
Topmost
TransColor
Transparent
Tray
TreeView
TryAgain
Type
UnCheck
underline
Unicode
Unlock
UpDown
Upper
Uppercase
UseErrorLevel
Vis
VisFirst
Visible
VScroll
Wait
WaitClose
WantCtrlA
WantF2
WantReturn
While
Wrap
Xdigit
xm
xp
xs
Yes
ym
yp
ys
----------------------------------------------------
[
["keyword", "Abort"],
["keyword", "AboveNormal"],
["keyword", "Add"],
["keyword", "ahk_class"],
["keyword", "ahk_group"],
["keyword", "ahk_id"],
["keyword", "ahk_pid"],
["keyword", "All"],
["keyword", "Alnum"],
["keyword", "Alpha"],
["keyword", "AltSubmit"],
["keyword", "AltTab"],
["keyword", "AltTabAndMenu"],
["keyword", "AltTabMenu"],
["keyword", "AltTabMenuDismiss"],
["keyword", "AlwaysOnTop"],
["keyword", "AutoSize"],
["keyword", "Background"],
["keyword", "BackgroundTrans"],
["keyword", "BelowNormal"],
["keyword", "between"],
["keyword", "BitAnd"],
["keyword", "BitNot"],
["keyword", "BitOr"],
["keyword", "BitShiftLeft"],
["keyword", "BitShiftRight"],
["keyword", "BitXOr"],
["keyword", "Bold"],
["keyword", "Border"],
["keyword", "Button"],
["keyword", "ByRef"],
["keyword", "Checkbox"],
["keyword", "Checked"],
["keyword", "CheckedGray"],
["keyword", "Choose"],
["keyword", "ChooseString"],
["keyword", "Close"],
["keyword", "Color"],
["keyword", "ComboBox"],
["keyword", "Contains"],
["keyword", "ControlList"],
["keyword", "Count"],
["keyword", "Date"],
["keyword", "DateTime"],
["keyword", "Days"],
["keyword", "DDL"],
["keyword", "Default"],
["keyword", "DeleteAll"],
["keyword", "Delimiter"],
["keyword", "Deref"],
["keyword", "Destroy"],
["keyword", "Digit"],
["keyword", "Disable"],
["keyword", "Disabled"],
["keyword", "DropDownList"],
["keyword", "Edit"],
["keyword", "Eject"],
["keyword", "Else"],
["keyword", "Enable"],
["keyword", "Enabled"],
["keyword", "Error"],
["keyword", "Exist"],
["keyword", "Expand"],
["keyword", "ExStyle"],
["keyword", "FileSystem"],
["keyword", "First"],
["keyword", "Flash"],
["keyword", "Float"],
["keyword", "FloatFast"],
["keyword", "Focus"],
["keyword", "Font"],
["keyword", "for"],
["keyword", "global"],
["keyword", "Grid"],
["keyword", "Group"],
["keyword", "GroupBox"],
["keyword", "GuiClose"],
["keyword", "GuiContextMenu"],
["keyword", "GuiDropFiles"],
["keyword", "GuiEscape"],
["keyword", "GuiSize"],
["keyword", "Hdr"],
["keyword", "Hidden"],
["keyword", "Hide"],
["keyword", "High"],
["keyword", "HKCC"],
["keyword", "HKCR"],
["keyword", "HKCU"],
["keyword", "HKEY_CLASSES_ROOT"],
["keyword", "HKEY_CURRENT_CONFIG"],
["keyword", "HKEY_CURRENT_USER"],
["keyword", "HKEY_LOCAL_MACHINE"],
["keyword", "HKEY_USERS"],
["keyword", "HKLM"],
["keyword", "HKU"],
["keyword", "Hours"],
["keyword", "HScroll"],
["keyword", "Icon"],
["keyword", "IconSmall"],
["keyword", "ID"],
["keyword", "IDLast"],
["keyword", "If"],
["keyword", "IfEqual"],
["keyword", "IfExist"],
["keyword", "IfGreater"],
["keyword", "IfGreaterOrEqual"],
["keyword", "IfInString"],
["keyword", "IfLess"],
["keyword", "IfLessOrEqual"],
["keyword", "IfMsgBox"],
["keyword", "IfNotEqual"],
["keyword", "IfNotExist"],
["keyword", "IfNotInString"],
["keyword", "IfWinActive"],
["keyword", "IfWinExist"],
["keyword", "IfWinNotActive"],
["keyword", "IfWinNotExist"],
["keyword", "Ignore"],
["keyword", "ImageList"],
["keyword", "in"],
["keyword", "Integer"],
["keyword", "IntegerFast"],
["keyword", "Interrupt"],
["keyword", "is"],
["keyword", "italic"],
["keyword", "Join"],
["keyword", "Label"],
["keyword", "LastFound"],
["keyword", "LastFoundExist"],
["keyword", "Limit"],
["keyword", "Lines"],
["keyword", "List"],
["keyword", "ListBox"],
["keyword", "ListView"],
["keyword", "local"],
["keyword", "Lock"],
["keyword", "Logoff"],
["keyword", "Low"],
["keyword", "Lower"],
["keyword", "Lowercase"],
["keyword", "MainWindow"],
["keyword", "Margin"],
["keyword", "Maximize"],
["keyword", "MaximizeBox"],
["keyword", "MaxSize"],
["keyword", "Minimize"],
["keyword", "MinimizeBox"],
["keyword", "MinMax"],
["keyword", "MinSize"],
["keyword", "Minutes"],
["keyword", "MonthCal"],
["keyword", "Mouse"],
["keyword", "Move"],
["keyword", "Multi"],
["keyword", "NA"],
["keyword", "No"],
["keyword", "NoActivate"],
["keyword", "NoDefault"],
["keyword", "NoHide"],
["keyword", "NoIcon"],
["keyword", "NoMainWindow"],
["keyword", "norm"],
["keyword", "Normal"],
["keyword", "NoSort"],
["keyword", "NoSortHdr"],
["keyword", "NoStandard"],
["keyword", "Not"],
["keyword", "NoTab"],
["keyword", "NoTimers"],
["keyword", "Number"],
["keyword", "Off"],
["keyword", "Ok"],
["keyword", "On"],
["keyword", "OwnDialogs"],
["keyword", "Owner"],
["keyword", "Parse"],
["keyword", "Password"],
["keyword", "Picture"],
["keyword", "Pixel"],
["keyword", "Pos"],
["keyword", "Pow"],
["keyword", "Priority"],
["keyword", "ProcessName"],
["keyword", "Radio"],
["keyword", "Range"],
["keyword", "Read"],
["keyword", "ReadOnly"],
["keyword", "Realtime"],
["keyword", "Redraw"],
["keyword", "REG_BINARY"],
["keyword", "REG_DWORD"],
["keyword", "REG_EXPAND_SZ"],
["keyword", "REG_MULTI_SZ"],
["keyword", "REG_SZ"],
["keyword", "Region"],
["keyword", "Relative"],
["keyword", "Rename"],
["keyword", "Report"],
["keyword", "Resize"],
["keyword", "Restore"],
["keyword", "Retry"],
["keyword", "RGB"],
["keyword", "Screen"],
["keyword", "Seconds"],
["keyword", "Section"],
["keyword", "Serial"],
["keyword", "SetLabel"],
["keyword", "ShiftAltTab"],
["keyword", "Show"],
["keyword", "Single"],
["keyword", "Slider"],
["keyword", "SortDesc"],
["keyword", "Standard"],
["keyword", "static"],
["keyword", "Status"],
["keyword", "StatusBar"],
["keyword", "StatusCD"],
["keyword", "strike"],
["keyword", "Style"],
["keyword", "Submit"],
["keyword", "SysMenu"],
["keyword", "Tab2"],
["keyword", "TabStop"],
["keyword", "Text"],
["keyword", "Theme"],
["keyword", "Tile"],
["keyword", "ToggleCheck"],
["keyword", "ToggleEnable"],
["keyword", "ToolWindow"],
["keyword", "Top"],
["keyword", "Topmost"],
["keyword", "TransColor"],
["keyword", "Transparent"],
["keyword", "Tray"],
["keyword", "TreeView"],
["keyword", "TryAgain"],
["keyword", "Type"],
["keyword", "UnCheck"],
["keyword", "underline"],
["keyword", "Unicode"],
["keyword", "Unlock"],
["keyword", "UpDown"],
["keyword", "Upper"],
["keyword", "Uppercase"],
["keyword", "UseErrorLevel"],
["keyword", "Vis"],
["keyword", "VisFirst"],
["keyword", "Visible"],
["keyword", "VScroll"],
["keyword", "Wait"],
["keyword", "WaitClose"],
["keyword", "WantCtrlA"],
["keyword", "WantF2"],
["keyword", "WantReturn"],
["keyword", "While"],
["keyword", "Wrap"],
["keyword", "Xdigit"],
["keyword", "xm"],
["keyword", "xp"],
["keyword", "xs"],
["keyword", "Yes"],
["keyword", "ym"],
["keyword", "yp"],
["keyword", "ys"]
]
----------------------------------------------------
Checks for all keywords.

View File

@ -0,0 +1,21 @@
42
3.14159
3.2e10
2.9E-7
0xbabe
0xBABE
----------------------------------------------------
[
["number", "42"],
["number", "3.14159"],
["number", "3.2e10"],
["number", "2.9E-7"],
["number", "0xbabe"],
["number", "0xBABE"]
]
----------------------------------------------------
Checks for numbers.

View File

@ -0,0 +1,33 @@
+ - * /
= ? & |
< >
++ -- ** //
! ~ ^ .
<< >> <= >=
~= == <> !=
NOT AND && OR ||
:= += -= *=
/= //= .=
|= &= ^=
>>= <<=
----------------------------------------------------
[
["operator", "+"], ["operator", "-"], ["operator", "*"], ["operator", "/"],
["operator", "="], ["operator", "?"], ["operator", "&"], ["operator", "|"],
["operator", "<"], ["operator", ">"],
["operator", "++"], ["operator", "--"], ["operator", "**"], ["operator", "//"],
["operator", "!"], ["operator", "~"], ["operator", "^"], ["operator", "."],
["operator", "<<"], ["operator", ">>"], ["operator", "<="], ["operator", ">="],
["operator", "~="], ["operator", "=="], ["operator", "<>"], ["operator", "!="],
["operator", "NOT"], ["operator", "AND"], ["operator", "&&"], ["operator", "OR"], ["operator", "||"],
["operator", ":="], ["operator", "+="], ["operator", "-="], ["operator", "*="],
["operator", "/="], ["operator", "//="], ["operator", ".="],
["operator", "|="], ["operator", "&="], ["operator", "^="],
["operator", ">>="], ["operator", "<<="]
]
----------------------------------------------------
Checks for all operators.

View File

@ -0,0 +1,381 @@
AutoTrim
BlockInput
Break
Click
ClipWait
Continue
Control
ControlClick
ControlFocus
ControlGet
ControlGetFocus
ControlGetPos
ControlGetText
ControlMove
ControlSend
ControlSendRaw
ControlSetText
CoordMode
Critical
DetectHiddenText
DetectHiddenWindows
Drive
DriveGet
DriveSpaceFree
EnvAdd
EnvDiv
EnvGet
EnvMult
EnvSet
EnvSub
EnvUpdate
Exit
ExitApp
FileAppend
FileCopy
FileCopyDir
FileCreateDir
FileCreateShortcut
FileDelete
FileEncoding
FileGetAttrib
FileGetShortcut
FileGetSize
FileGetTime
FileGetVersion
FileInstall
FileMove
FileMoveDir
FileRead
FileReadLine
FileRecycle
FileRecycleEmpty
FileRemoveDir
FileSelectFile
FileSelectFolder
FileSetAttrib
FileSetTime
FormatTime
GetKeyState
Gosub
Goto
GroupActivate
GroupAdd
GroupClose
GroupDeactivate
Gui
GuiControl
GuiControlGet
Hotkey
ImageSearch
IniDelete
IniRead
IniWrite
Input
InputBox
KeyWait
ListHotkeys
ListLines
ListVars
Loop
Menu
MouseClick
MouseClickDrag
MouseGetPos
MouseMove
MsgBox
OnExit
OutputDebug
Pause
PixelGetColor
PixelSearch
PostMessage
Process
Progress
Random
RegDelete
RegRead
RegWrite
Reload
Repeat
Return
Run
RunAs
RunWait
Send
SendEvent
SendInput
SendMessage
SendMode
SendPlay
SendRaw
SetBatchLines
SetCapslockState
SetControlDelay
SetDefaultMouseSpeed
SetEnv
SetFormat
SetKeyDelay
SetMouseDelay
SetNumlockState
SetScrollLockState
SetStoreCapslockMode
SetTimer
SetTitleMatchMode
SetWinDelay
SetWorkingDir
Shutdown
Sleep
Sort
SoundBeep
SoundGet
SoundGetWaveVolume
SoundPlay
SoundSet
SoundSetWaveVolume
SplashImage
SplashTextOff
SplashTextOn
SplitPath
StatusBarGetText
StatusBarWait
StringCaseSense
StringGetPos
StringLeft
StringLen
StringLower
StringMid
StringReplace
StringRight
StringSplit
StringTrimLeft
StringTrimRight
StringUpper
Suspend
SysGet
Thread
ToolTip
Transform
TrayTip
URLDownloadToFile
WinActivate
WinActivateBottom
WinClose
WinGet
WinGetActiveStats
WinGetActiveTitle
WinGetClass
WinGetPos
WinGetText
WinGetTitle
WinHide
WinKill
WinMaximize
WinMenuSelectItem
WinMinimize
WinMinimizeAll
WinMinimizeAllUndo
WinMove
WinRestore
WinSet
WinSetTitle
WinShow
WinWait
WinWaitActive
WinWaitClose
WinWaitNotActive
----------------------------------------------------
[
["selector", "AutoTrim"],
["selector", "BlockInput"],
["selector", "Break"],
["selector", "Click"],
["selector", "ClipWait"],
["selector", "Continue"],
["selector", "Control"],
["selector", "ControlClick"],
["selector", "ControlFocus"],
["selector", "ControlGet"],
["selector", "ControlGetFocus"],
["selector", "ControlGetPos"],
["selector", "ControlGetText"],
["selector", "ControlMove"],
["selector", "ControlSend"],
["selector", "ControlSendRaw"],
["selector", "ControlSetText"],
["selector", "CoordMode"],
["selector", "Critical"],
["selector", "DetectHiddenText"],
["selector", "DetectHiddenWindows"],
["selector", "Drive"],
["selector", "DriveGet"],
["selector", "DriveSpaceFree"],
["selector", "EnvAdd"],
["selector", "EnvDiv"],
["selector", "EnvGet"],
["selector", "EnvMult"],
["selector", "EnvSet"],
["selector", "EnvSub"],
["selector", "EnvUpdate"],
["selector", "Exit"],
["selector", "ExitApp"],
["selector", "FileAppend"],
["selector", "FileCopy"],
["selector", "FileCopyDir"],
["selector", "FileCreateDir"],
["selector", "FileCreateShortcut"],
["selector", "FileDelete"],
["selector", "FileEncoding"],
["selector", "FileGetAttrib"],
["selector", "FileGetShortcut"],
["selector", "FileGetSize"],
["selector", "FileGetTime"],
["selector", "FileGetVersion"],
["selector", "FileInstall"],
["selector", "FileMove"],
["selector", "FileMoveDir"],
["selector", "FileRead"],
["selector", "FileReadLine"],
["selector", "FileRecycle"],
["selector", "FileRecycleEmpty"],
["selector", "FileRemoveDir"],
["selector", "FileSelectFile"],
["selector", "FileSelectFolder"],
["selector", "FileSetAttrib"],
["selector", "FileSetTime"],
["selector", "FormatTime"],
["selector", "GetKeyState"],
["selector", "Gosub"],
["selector", "Goto"],
["selector", "GroupActivate"],
["selector", "GroupAdd"],
["selector", "GroupClose"],
["selector", "GroupDeactivate"],
["selector", "Gui"],
["selector", "GuiControl"],
["selector", "GuiControlGet"],
["selector", "Hotkey"],
["selector", "ImageSearch"],
["selector", "IniDelete"],
["selector", "IniRead"],
["selector", "IniWrite"],
["selector", "Input"],
["selector", "InputBox"],
["selector", "KeyWait"],
["selector", "ListHotkeys"],
["selector", "ListLines"],
["selector", "ListVars"],
["selector", "Loop"],
["selector", "Menu"],
["selector", "MouseClick"],
["selector", "MouseClickDrag"],
["selector", "MouseGetPos"],
["selector", "MouseMove"],
["selector", "MsgBox"],
["selector", "OnExit"],
["selector", "OutputDebug"],
["selector", "Pause"],
["selector", "PixelGetColor"],
["selector", "PixelSearch"],
["selector", "PostMessage"],
["selector", "Process"],
["selector", "Progress"],
["selector", "Random"],
["selector", "RegDelete"],
["selector", "RegRead"],
["selector", "RegWrite"],
["selector", "Reload"],
["selector", "Repeat"],
["selector", "Return"],
["selector", "Run"],
["selector", "RunAs"],
["selector", "RunWait"],
["selector", "Send"],
["selector", "SendEvent"],
["selector", "SendInput"],
["selector", "SendMessage"],
["selector", "SendMode"],
["selector", "SendPlay"],
["selector", "SendRaw"],
["selector", "SetBatchLines"],
["selector", "SetCapslockState"],
["selector", "SetControlDelay"],
["selector", "SetDefaultMouseSpeed"],
["selector", "SetEnv"],
["selector", "SetFormat"],
["selector", "SetKeyDelay"],
["selector", "SetMouseDelay"],
["selector", "SetNumlockState"],
["selector", "SetScrollLockState"],
["selector", "SetStoreCapslockMode"],
["selector", "SetTimer"],
["selector", "SetTitleMatchMode"],
["selector", "SetWinDelay"],
["selector", "SetWorkingDir"],
["selector", "Shutdown"],
["selector", "Sleep"],
["selector", "Sort"],
["selector", "SoundBeep"],
["selector", "SoundGet"],
["selector", "SoundGetWaveVolume"],
["selector", "SoundPlay"],
["selector", "SoundSet"],
["selector", "SoundSetWaveVolume"],
["selector", "SplashImage"],
["selector", "SplashTextOff"],
["selector", "SplashTextOn"],
["selector", "SplitPath"],
["selector", "StatusBarGetText"],
["selector", "StatusBarWait"],
["selector", "StringCaseSense"],
["selector", "StringGetPos"],
["selector", "StringLeft"],
["selector", "StringLen"],
["selector", "StringLower"],
["selector", "StringMid"],
["selector", "StringReplace"],
["selector", "StringRight"],
["selector", "StringSplit"],
["selector", "StringTrimLeft"],
["selector", "StringTrimRight"],
["selector", "StringUpper"],
["selector", "Suspend"],
["selector", "SysGet"],
["selector", "Thread"],
["selector", "ToolTip"],
["selector", "Transform"],
["selector", "TrayTip"],
["selector", "URLDownloadToFile"],
["selector", "WinActivate"],
["selector", "WinActivateBottom"],
["selector", "WinClose"],
["selector", "WinGet"],
["selector", "WinGetActiveStats"],
["selector", "WinGetActiveTitle"],
["selector", "WinGetClass"],
["selector", "WinGetPos"],
["selector", "WinGetText"],
["selector", "WinGetTitle"],
["selector", "WinHide"],
["selector", "WinKill"],
["selector", "WinMaximize"],
["selector", "WinMenuSelectItem"],
["selector", "WinMinimize"],
["selector", "WinMinimizeAll"],
["selector", "WinMinimizeAllUndo"],
["selector", "WinMove"],
["selector", "WinRestore"],
["selector", "WinSet"],
["selector", "WinSetTitle"],
["selector", "WinShow"],
["selector", "WinWait"],
["selector", "WinWaitActive"],
["selector", "WinWaitClose"],
["selector", "WinWaitNotActive"]
]
----------------------------------------------------
Checks for all selectors.

View File

@ -0,0 +1,15 @@
""
"foo"
"foo""bar"
----------------------------------------------------
[
["string", "\"\""],
["string", "\"foo\""],
["string", "\"foo\"\"bar\""]
]
----------------------------------------------------
Checks for strings.

View File

@ -0,0 +1,347 @@
alt
altdown
altup
appskey
backspace
browser_back
browser_favorites
browser_forward
browser_home
browser_refresh
browser_search
browser_stop
bs
capslock
ctrl
ctrlbreak
ctrldown
ctrlup
del
delete
down
end
enter
esc
escape
f1
f10
f11
f12
f13
f14
f15
f16
f17
f18
f19
f2
f20
f21
f22
f23
f24
f3
f4
f5
f6
f7
f8
f9
home
ins
insert
joy1
joy10
joy11
joy12
joy13
joy14
joy15
joy16
joy17
joy18
joy19
joy2
joy20
joy21
joy22
joy23
joy24
joy25
joy26
joy27
joy28
joy29
joy3
joy30
joy31
joy32
joy4
joy5
joy6
joy7
joy8
joy9
joyaxes
joybuttons
joyinfo
joyname
joypov
joyr
joyu
joyv
joyx
joyy
joyz
lalt
launch_app1
launch_app2
launch_mail
launch_media
lbutton
lcontrol
lctrl
left
lshift
lwin
lwindown
lwinup
mbutton
media_next
media_play_pause
media_prev
media_stop
numlock
numpad0
numpad1
numpad2
numpad3
numpad4
numpad5
numpad6
numpad7
numpad8
numpad9
numpadadd
numpadclear
numpaddel
numpaddiv
numpaddot
numpaddown
numpadend
numpadenter
numpadhome
numpadins
numpadleft
numpadmult
numpadpgdn
numpadpgup
numpadright
numpadsub
numpadup
pgdn
pgup
printscreen
ralt
rbutton
rcontrol
rctrl
right
rshift
rwin
rwindown
rwinup
scrolllock
shift
shiftdown
shiftup
space
tab
up
volume_down
volume_mute
volume_up
wheeldown
wheelleft
wheelright
wheelup
xbutton1
xbutton2
----------------------------------------------------
[
["symbol", "alt"],
["symbol", "altdown"],
["symbol", "altup"],
["symbol", "appskey"],
["symbol", "backspace"],
["symbol", "browser_back"],
["symbol", "browser_favorites"],
["symbol", "browser_forward"],
["symbol", "browser_home"],
["symbol", "browser_refresh"],
["symbol", "browser_search"],
["symbol", "browser_stop"],
["symbol", "bs"],
["symbol", "capslock"],
["symbol", "ctrl"],
["symbol", "ctrlbreak"],
["symbol", "ctrldown"],
["symbol", "ctrlup"],
["symbol", "del"],
["symbol", "delete"],
["symbol", "down"],
["symbol", "end"],
["symbol", "enter"],
["symbol", "esc"],
["symbol", "escape"],
["symbol", "f1"],
["symbol", "f10"],
["symbol", "f11"],
["symbol", "f12"],
["symbol", "f13"],
["symbol", "f14"],
["symbol", "f15"],
["symbol", "f16"],
["symbol", "f17"],
["symbol", "f18"],
["symbol", "f19"],
["symbol", "f2"],
["symbol", "f20"],
["symbol", "f21"],
["symbol", "f22"],
["symbol", "f23"],
["symbol", "f24"],
["symbol", "f3"],
["symbol", "f4"],
["symbol", "f5"],
["symbol", "f6"],
["symbol", "f7"],
["symbol", "f8"],
["symbol", "f9"],
["symbol", "home"],
["symbol", "ins"],
["symbol", "insert"],
["symbol", "joy1"],
["symbol", "joy10"],
["symbol", "joy11"],
["symbol", "joy12"],
["symbol", "joy13"],
["symbol", "joy14"],
["symbol", "joy15"],
["symbol", "joy16"],
["symbol", "joy17"],
["symbol", "joy18"],
["symbol", "joy19"],
["symbol", "joy2"],
["symbol", "joy20"],
["symbol", "joy21"],
["symbol", "joy22"],
["symbol", "joy23"],
["symbol", "joy24"],
["symbol", "joy25"],
["symbol", "joy26"],
["symbol", "joy27"],
["symbol", "joy28"],
["symbol", "joy29"],
["symbol", "joy3"],
["symbol", "joy30"],
["symbol", "joy31"],
["symbol", "joy32"],
["symbol", "joy4"],
["symbol", "joy5"],
["symbol", "joy6"],
["symbol", "joy7"],
["symbol", "joy8"],
["symbol", "joy9"],
["symbol", "joyaxes"],
["symbol", "joybuttons"],
["symbol", "joyinfo"],
["symbol", "joyname"],
["symbol", "joypov"],
["symbol", "joyr"],
["symbol", "joyu"],
["symbol", "joyv"],
["symbol", "joyx"],
["symbol", "joyy"],
["symbol", "joyz"],
["symbol", "lalt"],
["symbol", "launch_app1"],
["symbol", "launch_app2"],
["symbol", "launch_mail"],
["symbol", "launch_media"],
["symbol", "lbutton"],
["symbol", "lcontrol"],
["symbol", "lctrl"],
["symbol", "left"],
["symbol", "lshift"],
["symbol", "lwin"],
["symbol", "lwindown"],
["symbol", "lwinup"],
["symbol", "mbutton"],
["symbol", "media_next"],
["symbol", "media_play_pause"],
["symbol", "media_prev"],
["symbol", "media_stop"],
["symbol", "numlock"],
["symbol", "numpad0"],
["symbol", "numpad1"],
["symbol", "numpad2"],
["symbol", "numpad3"],
["symbol", "numpad4"],
["symbol", "numpad5"],
["symbol", "numpad6"],
["symbol", "numpad7"],
["symbol", "numpad8"],
["symbol", "numpad9"],
["symbol", "numpadadd"],
["symbol", "numpadclear"],
["symbol", "numpaddel"],
["symbol", "numpaddiv"],
["symbol", "numpaddot"],
["symbol", "numpaddown"],
["symbol", "numpadend"],
["symbol", "numpadenter"],
["symbol", "numpadhome"],
["symbol", "numpadins"],
["symbol", "numpadleft"],
["symbol", "numpadmult"],
["symbol", "numpadpgdn"],
["symbol", "numpadpgup"],
["symbol", "numpadright"],
["symbol", "numpadsub"],
["symbol", "numpadup"],
["symbol", "pgdn"],
["symbol", "pgup"],
["symbol", "printscreen"],
["symbol", "ralt"],
["symbol", "rbutton"],
["symbol", "rcontrol"],
["symbol", "rctrl"],
["symbol", "right"],
["symbol", "rshift"],
["symbol", "rwin"],
["symbol", "rwindown"],
["symbol", "rwinup"],
["symbol", "scrolllock"],
["symbol", "shift"],
["symbol", "shiftdown"],
["symbol", "shiftup"],
["symbol", "space"],
["symbol", "tab"],
["symbol", "up"],
["symbol", "volume_down"],
["symbol", "volume_mute"],
["symbol", "volume_up"],
["symbol", "wheeldown"],
["symbol", "wheelleft"],
["symbol", "wheelright"],
["symbol", "wheelup"],
["symbol", "xbutton1"],
["symbol", "xbutton2"]
]
----------------------------------------------------
Checks for all symbols.

View File

@ -0,0 +1,15 @@
foo:
foo_bar:
----------------------------------------------------
[
["tag", "foo"],
["punctuation", ":"],
["tag", "foo_bar"],
["punctuation", ":"]
]
----------------------------------------------------
Checks for tags (labels).

View File

@ -0,0 +1,13 @@
%foo%
%foo_bar%
----------------------------------------------------
[
["variable", "%foo%"],
["variable", "%foo_bar%"]
]
----------------------------------------------------
Checks for variables.

View File

@ -0,0 +1,13 @@
True
False
----------------------------------------------------
[
["boolean", "True"],
["boolean", "False"]
]
----------------------------------------------------
Checks for booleans.

View File

@ -0,0 +1,33 @@
;
; foo
#comments-start
foobar()
#comments-end
#cs
foobar()
#ce
;#comments-start
foobar()
;#comments-end
;#cs
foobar()
;#ce
----------------------------------------------------
[
["comment", ";"],
["comment", "; foo"],
["comment", "#comments-start\r\n\tfoobar()\r\n#comments-end"],
["comment", "#cs\r\n\tfoobar()\r\n#ce"],
["comment", ";#comments-start"],
["function", "foobar"], ["punctuation", "("], ["punctuation", ")"],
["comment", ";#comments-end"],
["comment", ";#cs"],
["function", "foobar"], ["punctuation", "("], ["punctuation", ")"],
["comment", ";#ce"]
]
----------------------------------------------------
Checks for comments.

View File

@ -0,0 +1,13 @@
#NoTrayIcon
#OnAutoItStartRegister "Example"
----------------------------------------------------
[
["directive", "#NoTrayIcon"],
["directive", "#OnAutoItStartRegister"], ["string", ["\"Example\""]]
]
----------------------------------------------------
Checks for directives.

View File

@ -0,0 +1,15 @@
foo()
foo_bar()
foo_bar_42()
----------------------------------------------------
[
["function", "foo"], ["punctuation", "("], ["punctuation", ")"],
["function", "foo_bar"], ["punctuation", "("], ["punctuation", ")"],
["function", "foo_bar_42"], ["punctuation", "("], ["punctuation", ")"]
]
----------------------------------------------------
Checks for functions.

View File

@ -0,0 +1,83 @@
Case
Const
ContinueCase
ContinueLoop
Default
Dim
Do
Else
ElseIf
EndFunc
EndIf
EndSelect
EndSwitch
EndWith
Enum
Exit
ExitLoop
For
Func
Global
If
In
Local
Next
Null
ReDim
Select
Static
Step
Switch
Then
To
Until
Volatile
WEnd
While
With
----------------------------------------------------
[
["keyword", "Case"],
["keyword", "Const"],
["keyword", "ContinueCase"],
["keyword", "ContinueLoop"],
["keyword", "Default"],
["keyword", "Dim"],
["keyword", "Do"],
["keyword", "Else"],
["keyword", "ElseIf"],
["keyword", "EndFunc"],
["keyword", "EndIf"],
["keyword", "EndSelect"],
["keyword", "EndSwitch"],
["keyword", "EndWith"],
["keyword", "Enum"],
["keyword", "Exit"],
["keyword", "ExitLoop"],
["keyword", "For"],
["keyword", "Func"],
["keyword", "Global"],
["keyword", "If"],
["keyword", "In"],
["keyword", "Local"],
["keyword", "Next"],
["keyword", "Null"],
["keyword", "ReDim"],
["keyword", "Select"],
["keyword", "Static"],
["keyword", "Step"],
["keyword", "Switch"],
["keyword", "Then"],
["keyword", "To"],
["keyword", "Until"],
["keyword", "Volatile"],
["keyword", "WEnd"],
["keyword", "While"],
["keyword", "With"]
]
----------------------------------------------------
Checks for keywords.

View File

@ -0,0 +1,21 @@
42
3.14159
4e8
3.5E-9
0.7e+12
0xBadFace
----------------------------------------------------
[
["number", "42"],
["number", "3.14159"],
["number", "4e8"],
["number", "3.5E-9"],
["number", "0.7e+12"],
["number", "0xBadFace"]
]
----------------------------------------------------
Checks for numbers.

View File

@ -0,0 +1,23 @@
< <= <>
> >=
+ += - -=
* *= / /=
& &=
? ^
And Or Not
----------------------------------------------------
[
["operator", "<"], ["operator", "<="], ["operator", "<>"],
["operator", ">"], ["operator", ">="],
["operator", "+"], ["operator", "+="], ["operator", "-"], ["operator", "-="],
["operator", "*"], ["operator", "*="], ["operator", "/"], ["operator", "/="],
["operator", "&"], ["operator", "&="],
["operator", "?"], ["operator", "^"],
["operator", "And"], ["operator", "Or"], ["operator", "Not"]
]
----------------------------------------------------
Checks for operators.

View File

@ -0,0 +1,37 @@
""
"foo""bar"
"foo %foo% bar $bar$ baz @baz@"
''
'foo''bar'
'foo %foo% bar $bar$ baz @baz@'
----------------------------------------------------
[
["string", ["\"\""]],
["string", ["\"foo\"\"bar\""]],
["string", [
"\"foo ",
["variable", "%foo%"],
" bar ",
["variable", "$bar$"],
" baz ",
["variable", "@baz@"],
"\""
]],
["string", ["''"]],
["string", ["'foo''bar'"]],
["string", [
"'foo ",
["variable", "%foo%"],
" bar ",
["variable", "$bar$"],
" baz ",
["variable", "@baz@"],
"'"
]]
]
----------------------------------------------------
Checks for strings and interpolation.

View File

@ -0,0 +1,15 @@
#include <foo.au3>
#include "foo.au3"
----------------------------------------------------
[
["directive", "#include"],
["url", "<foo.au3>"],
["directive", "#include"],
["url", "\"foo.au3\""]
]
----------------------------------------------------
Checks for files in includes.

View File

@ -0,0 +1,19 @@
$foo
$foo_bar_42
@ComputerName
@CPUArch
@TAB
----------------------------------------------------
[
["variable", "$foo"],
["variable", "$foo_bar_42"],
["variable", "@ComputerName"],
["variable", "@CPUArch"],
["variable", "@TAB"]
]
----------------------------------------------------
Checks for variables and macros.

Some files were not shown because too many files have changed in this diff Show More