Merge pull request #1172 from ajaxorg/highlighting/js

Highlighting bugfix
This commit is contained in:
Garen Torikian 2012-12-26 00:45:25 -08:00
commit 06911396d6
108 changed files with 7687 additions and 1129 deletions

3
.gitignore vendored
View file

@ -16,7 +16,8 @@
# A handy place to put stuff that git should ignore: # A handy place to put stuff that git should ignore:
/ignore/ /ignore/
node_modules/ node_modules/
tool/node_modules/ jam/
* *
.git-ref .git-ref
npm-debug.log npm-debug.log

2
build

@ -1 +1 @@
Subproject commit 9f433321a8cca9270753842c2517bd3588354dfe Subproject commit 97bae1d132effbeca5eef8aaef2a2a1fa836b181

View file

@ -0,0 +1,36 @@
***************************************
** Program: EXAMPLE **
** Author: Joe Byte, 07-Jul-2007 **
***************************************
REPORT BOOKINGS.
* Read flight bookings from the database
SELECT * FROM FLIGHTINFO
WHERE CLASS = 'Y' "Y = economy
OR CLASS = 'C'. "C = business
(...)
REPORT TEST.
WRITE 'Hello World'.
USERPROMPT = 'Please double-click on a line in the output list ' &
'to see the complete details of the transaction.'.
DATA LAST_EOM TYPE D. "last end-of-month date
* Start from today's date
LAST_EOM = SY-DATUM.
* Set characters 6 and 7 (0-relative) of the YYYYMMDD string to "01",
* giving the first day of the current month
LAST_EOM+6(2) = '01'.
* Subtract one day
LAST_EOM = LAST_EOM - 1.
WRITE: 'Last day of previous month was', LAST_EOM.
DATA : BEGIN OF I_VBRK OCCURS 0,
VBELN LIKE VBRK-VBELN,
ZUONR LIKE VBRK-ZUONR,
END OF I_VBRK.

View file

@ -0,0 +1,111 @@
------------------------------------
-----------------------------------
_ita_lic_, *bo*ld*, +mo+no+, normal.
``double quoted'', `single quoted'.
normal, ^super^, ~sub~.
''''
Escaped:
\_italic_, +++_italic_+++,
t\__e__st, +++t__e__st+++,
+++<b>bold</b>+++, $$<b>normal</b>$$
\&#182; &#182;
\`not single quoted'
\`\`not double quoted''
[fffff]
+++++++++++++++++++++++++++++++++++++
(C) {ss} ss
+++++++++++++++++++++++++++++++++++++
.............
callout <1>
..............
> 1
1> 2
<2> 3
Escaped:
\_italic_,
t\__e__st, o__
.optional title
.............
callout <1>
..............
:macro: dddd
.lists
. 1
.. 2
... d
..... big
+
continue +
next line
xi) no ++la+tin++
xi) la++tin++
2. num__ber__ [red]#red#
--
5. f <<x6,ssss>> {macro}
--
image::path[beauty] ->--<= -- replacements
image::s
sssss
sss
sssss
== 1
heading
=== not a heading
====================================
==================================
====4
NOTE: above
NOTE: above
[[x6]]
WARNING:
[options[]]
---------------------------
literal
---------------------------
= Tables
|====================================
| _italic_ | *bold* | text | (R)
|====================================
[more, options]
///////////
comment
///////////
// one line comment
[red]#red text# [yellow-background]#on yellow#
[big]#large# [red yellow-background big]*all bold*
https://site text <mail@i.am> callto:ace http://ace.ajaxorg.com[awesome]
.still normal text
.break out thoug should not
---------------------------
///////////////////////////
---------------------------

View file

@ -0,0 +1,294 @@
[
{
"state": "start",
"data": [
[ "doc.comment", "***************************************" ]
]
},
{
"state": "start",
"data": [
[ "doc.comment", "** Program: EXAMPLE **" ]
]
},
{
"state": "start",
"data": [
[ "doc.comment", "** Author: Joe Byte, 07-Jul-2007 **" ]
]
},
{
"state": "start",
"data": [
[ "doc.comment", "***************************************" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ]
]
},
{
"state": "start",
"data": [
[ "keyword", "REPORT" ],
[ "text", " BOOKINGS" ],
[ "keyword.operator", "." ]
]
},
{
"state": "start",
"data": [
[ "text", " " ]
]
},
{
"state": "start",
"data": [
[ "doc.comment", "* Read flight bookings from the database" ]
]
},
{
"state": "start",
"data": [
[ "keyword", "SELECT" ],
[ "keyword.operator", " * " ],
[ "keyword", "FROM" ],
[ "text", " FLIGHTINFO" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "keyword", "WHERE" ],
[ "text", " " ],
[ "keyword", "CLASS" ],
[ "keyword.operator", " = " ],
[ "string", "'Y'" ],
[ "text", " " ],
[ "comment", "\"Y = economy" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "keyword", "OR" ],
[ "text", " " ],
[ "keyword", "CLASS" ],
[ "keyword.operator", " = " ],
[ "string", "'C'" ],
[ "keyword.operator", "." ],
[ "text", " " ],
[ "comment", "\"C = business" ]
]
},
{
"state": "start",
"data": [
[ "paren.lparen", "(" ],
[ "invalid", "..." ],
[ "paren.rparen", ")" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "keyword", "REPORT" ],
[ "text", " TEST" ],
[ "keyword.operator", "." ]
]
},
{
"state": "start",
"data": [
[ "keyword", "WRITE" ],
[ "text", " " ],
[ "string", "'Hello World'" ],
[ "keyword.operator", "." ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "text", "USERPROMPT" ],
[ "keyword.operator", " = " ],
[ "string", "'Please double-click on a line in the output list '" ],
[ "text", " " ],
[ "keyword.operator", "&" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "string", "'to see the complete details of the transaction.'" ],
[ "keyword.operator", "." ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "keyword", "DATA" ],
[ "text", " LAST_EOM " ],
[ "keyword", "TYPE" ],
[ "text", " " ],
[ "support.type", "D" ],
[ "keyword.operator", "." ],
[ "text", " " ],
[ "comment", "\"last end-of-month date" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ]
]
},
{
"state": "start",
"data": [
[ "doc.comment", "* Start from today's date" ]
]
},
{
"state": "start",
"data": [
[ "text", " LAST_EOM" ],
[ "keyword.operator", " = " ],
[ "variable.parameter", "SY" ],
[ "keyword.operator", "-" ],
[ "text", "DATUM" ],
[ "keyword.operator", "." ]
]
},
{
"state": "start",
"data": [
[ "doc.comment", "* Set characters 6 and 7 (0-relative) of the YYYYMMDD string to \"01\"," ]
]
},
{
"state": "start",
"data": [
[ "doc.comment", "* giving the first day of the current month" ]
]
},
{
"state": "start",
"data": [
[ "text", " LAST_EOM" ],
[ "constant.numeric", "+6" ],
[ "paren.lparen", "(" ],
[ "constant.numeric", "2" ],
[ "paren.rparen", ")" ],
[ "keyword.operator", " = " ],
[ "string", "'01'" ],
[ "keyword.operator", "." ]
]
},
{
"state": "start",
"data": [
[ "doc.comment", "* Subtract one day" ]
]
},
{
"state": "start",
"data": [
[ "text", " LAST_EOM" ],
[ "keyword.operator", " = " ],
[ "text", "LAST_EOM" ],
[ "keyword.operator", " - " ],
[ "constant.numeric", "1" ],
[ "keyword.operator", "." ]
]
},
{
"state": "start",
"data": [
[ "text", " " ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "keyword", "WRITE" ],
[ "keyword.operator", ":" ],
[ "text", " " ],
[ "string", "'Last day of previous month was'" ],
[ "keyword.operator", "," ],
[ "text", " LAST_EOM" ],
[ "keyword.operator", "." ]
]
},
{
"state": "start",
"data": [
[ "text", " " ]
]
},
{
"state": "start",
"data": [
[ "keyword", "DATA" ],
[ "text", " " ],
[ "keyword.operator", ":" ],
[ "text", " " ],
[ "keyword", "BEGIN OF" ],
[ "text", " I_VBRK " ],
[ "keyword", "OCCURS" ],
[ "text", " " ],
[ "constant.numeric", "0" ],
[ "keyword.operator", "," ]
]
},
{
"state": "start",
"data": [
[ "text", " VBELN " ],
[ "keyword", "LIKE" ],
[ "text", " " ],
[ "variable.parameter", "VBRK-VBELN" ],
[ "keyword.operator", "," ]
]
},
{
"state": "start",
"data": [
[ "text", " ZUONR " ],
[ "keyword", "LIKE" ],
[ "text", " " ],
[ "variable.parameter", "VBRK-ZUONR" ],
[ "keyword.operator", "," ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "keyword", "END OF" ],
[ "text", " I_VBRK" ],
[ "keyword.operator", "." ]
]
}
]

View file

@ -0,0 +1,729 @@
[
{
"state": "literalBlock",
"data": [
[ "support.function", "------------------------------------" ]
]
},
{
"state": "dissallowDelimitedBlock",
"data": [
[ "support.function", "-----------------------------------" ]
]
},
{
"state": "text",
"data": [
[ "string.italic", "_ita_lic_" ],
[ "text", ", " ],
[ "keyword.bold", "*bo*ld*" ],
[ "text", ", " ],
[ "support.function", "+mo+no+" ],
[ "text", ", normal. " ]
]
},
{
"state": "text",
"data": [
[ "keyword", "``" ],
[ "text", "double quoted" ],
[ "keyword", "''" ],
[ "text", ", `single quoted'." ]
]
},
{
"state": "text",
"data": [
[ "text", " normal, ^super^, " ],
[ "keyword", "~sub~" ],
[ "text", "." ]
]
},
{
"state": "start",
"data": []
},
{
"state": "text",
"data": [
[ "text", "''''" ]
]
},
{
"state": "text",
"data": [
[ "text", "Escaped:" ]
]
},
{
"state": "text",
"data": [
[ "constant.language.escape", "\\_" ],
[ "text", "italic_, " ],
[ "support.function", "+++" ],
[ "text", "_italic_" ],
[ "support.function", "+++" ],
[ "text", "," ]
]
},
{
"state": "smallPassthrough",
"data": [
[ "text", "t" ],
[ "constant.language.escape", "\\_" ],
[ "text", "_e" ],
[ "string.italic", "__st, +++t__" ],
[ "text", "e__st" ],
[ "support.function", "+++" ],
[ "text", "," ]
]
},
{
"state": "smallPassthrough",
"data": [
[ "support.function", "+++" ],
[ "text", "<b>bold</b>" ],
[ "support.function", "+++" ],
[ "text", ", $$<" ],
[ "support.function", "b" ],
[ "text", ">" ],
[ "support.function", "normal" ],
[ "text", "</" ],
[ "support.function", "b" ],
[ "text", ">$$" ]
]
},
{
"state": "smallPassthrough",
"data": [
[ "text", "\\&#" ],
[ "support.function", "182" ],
[ "text", "; &#" ],
[ "support.function", "182" ],
[ "text", ";" ]
]
},
{
"state": "smallPassthrough",
"data": [
[ "text", "\\`" ],
[ "support.function", "not" ],
[ "text", " " ],
[ "support.function", "single" ],
[ "text", " " ],
[ "support.function", "quoted" ],
[ "text", "'" ]
]
},
{
"state": "smallPassthrough",
"data": [
[ "text", "\\`\\`" ],
[ "support.function", "not" ],
[ "text", " " ],
[ "support.function", "double" ],
[ "text", " " ],
[ "support.function", "quoted" ],
[ "text", "''" ]
]
},
{
"state": "dissallowDelimitedBlock",
"data": []
},
{
"state": "text",
"data": []
},
{
"state": "start",
"data": [
[ "string.regexp", "[fffff]" ]
]
},
{
"state": "passthroughBlock",
"data": [
[ "string", "+++++++++++++++++++++++++++++++++++++" ]
]
},
{
"state": "passthroughBlock",
"data": [
[ "support.function", "(C) " ],
[ "constant.character", "{ss}" ],
[ "support.function", " ss" ]
]
},
{
"state": "dissallowDelimitedBlock",
"data": [
[ "support.function", "+++++++++++++++++++++++++++++++++++++" ]
]
},
{
"state": "text",
"data": []
},
{
"state": "listingBlock",
"data": [
[ "support.function", "............." ]
]
},
{
"state": "listingBlock",
"data": [
[ "support.function", "callout " ],
[ "constant.numeric", "<1>" ]
]
},
{
"state": "dissallowDelimitedBlock",
"data": [
[ "support.function", ".............." ]
]
},
{
"state": "text",
"data": []
},
{
"state": "text",
"data": [
[ "text", "> 1" ]
]
},
{
"state": "text",
"data": [
[ "text", "1> 2" ]
]
},
{
"state": "text",
"data": [
[ "text", "<2> 3" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "text",
"data": [
[ "text", "Escaped:" ]
]
},
{
"state": "text",
"data": [
[ "constant.language.escape", "\\_" ],
[ "text", "italic_," ]
]
},
{
"state": "text",
"data": [
[ "text", "t" ],
[ "constant.language.escape", "\\_" ],
[ "text", "_e" ],
[ "string.italic", "__st, o__" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "constant.numeric", ".optional title" ]
]
},
{
"state": "listingBlock",
"data": [
[ "support.function", "............." ]
]
},
{
"state": "listingBlock",
"data": [
[ "support.function", "callout " ],
[ "constant.numeric", "<1>" ]
]
},
{
"state": "dissallowDelimitedBlock",
"data": [
[ "support.function", ".............." ]
]
},
{
"state": "text",
"data": []
},
{
"state": "start",
"data": []
},
{
"state": "text",
"data": [
[ "keyword", ":macro:" ],
[ "text", " dddd" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "constant.numeric", ".lists" ]
]
},
{
"state": "listText",
"data": [
[ "keyword", ". " ],
[ "text", "1" ]
]
},
{
"state": "listText",
"data": [
[ "keyword", ".. " ],
[ "text", "2" ]
]
},
{
"state": "listText",
"data": [
[ "keyword", "... " ],
[ "text", "d" ]
]
},
{
"state": "listText",
"data": [
[ "keyword", "..... " ],
[ "text", "big" ]
]
},
{
"state": "start",
"data": [
[ "keyword", "+" ]
]
},
{
"state": "text",
"data": [
[ "text", "continue" ],
[ "keyword", " +" ]
]
},
{
"state": "text",
"data": [
[ "text", "next line" ]
]
},
{
"state": "text",
"data": [
[ "text", "xi) no " ],
[ "support.function", "++la+tin++" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "listText",
"data": [
[ "keyword", "xi) " ],
[ "text", "la" ],
[ "support.function", "++tin++" ]
]
},
{
"state": "listText",
"data": [
[ "keyword", "2. " ],
[ "text", "num" ],
[ "string.italic", "__ber__" ],
[ "text", " [red]" ],
[ "keyword", "#" ],
[ "text", "red" ],
[ "keyword", "#" ]
]
},
{
"state": "start",
"data": [
[ "keyword", "--" ]
]
},
{
"state": "listText",
"data": [
[ "keyword", " 5. " ],
[ "text", "f " ],
[ "keyword", "<<x6," ],
[ "string", "ssss" ],
[ "keyword", ">>" ],
[ "text", " " ],
[ "constant.character", "{macro}" ]
]
},
{
"state": "start",
"data": [
[ "keyword", "--" ]
]
},
{
"state": "text",
"data": [
[ "markup.list.macro", "image::" ],
[ "keyword", "path" ],
[ "string", "[beauty]" ],
[ "text", " " ],
[ "constant.language.escape", "->" ],
[ "text", "--" ],
[ "constant.language.escape", "<= --" ],
[ "text", " replacements" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "indentedBlock",
"data": [
[ "support.function", " image::s" ]
]
},
{
"state": "indentedBlock",
"data": [
[ "support.function", "sssss" ]
]
},
{
"state": "indentedBlock",
"data": [
[ "support.function", "sss " ]
]
},
{
"state": "indentedBlock",
"data": [
[ "support.function", "sssss" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "markup.heading", "== 1" ]
]
},
{
"state": "indentedBlock",
"data": [
[ "support.function", " heading" ]
]
},
{
"state": "start",
"data": [
[ "markup.heading", "=== not a heading" ]
]
},
{
"state": "start",
"data": [
[ "keyword", "====================================" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "keyword", "==================================" ]
]
},
{
"state": "text",
"data": [
[ "text", "====4 " ]
]
},
{
"state": "text",
"data": [
[ "text", "NOTE: above" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "text",
"data": [
[ "keyword", "NOTE:" ],
[ "text", " above" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "string.regexp", "[[x6]]" ]
]
},
{
"state": "text",
"data": [
[ "keyword", "WARNING:" ],
[ "text", " " ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "string.regexp", "[options[]]" ]
]
},
{
"state": "literalBlock",
"data": [
[ "support.function", "---------------------------" ]
]
},
{
"state": "literalBlock",
"data": [
[ "support.function", "literal" ]
]
},
{
"state": "dissallowDelimitedBlock",
"data": [
[ "support.function", "---------------------------" ]
]
},
{
"state": "text",
"data": []
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "markup.heading", "= Tables" ]
]
},
{
"state": "tableBlock",
"data": [
[ "doc.comment", "|====================================" ]
]
},
{
"state": "tableBlock",
"data": [
[ "doc.comment", "|" ],
[ "text", " " ],
[ "string.italic", "_italic_" ],
[ "text", " " ],
[ "doc.comment", "|" ],
[ "text", " " ],
[ "keyword.bold", "*bold*" ],
[ "text", " " ],
[ "doc.comment", "|" ],
[ "text", " text " ],
[ "doc.comment", "|" ],
[ "text", " " ],
[ "constant.language.escape", "(R)" ]
]
},
{
"state": "tableBlock",
"data": []
},
{
"state": "dissallowDelimitedBlock",
"data": [
[ "doc.comment", "|====================================" ]
]
},
{
"state": "text",
"data": []
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "string.regexp", "[more, options]" ]
]
},
{
"state": "commentBlock",
"data": [
[ "doc.comment", "///////////" ]
]
},
{
"state": "commentBlock",
"data": [
[ "doc.comment", "comment" ]
]
},
{
"state": "dissallowDelimitedBlock",
"data": [
[ "doc.comment", "///////////" ]
]
},
{
"state": "text",
"data": [
[ "comment", "// one line comment" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": []
},
{
"state": "text",
"data": [
[ "text", "[red]" ],
[ "keyword", "#" ],
[ "text", "red text" ],
[ "keyword", "#" ],
[ "text", " [yellow-background]" ],
[ "keyword", "#" ],
[ "text", "on yellow" ],
[ "keyword", "#" ]
]
},
{
"state": "text",
"data": [
[ "text", "[big]" ],
[ "keyword", "#" ],
[ "text", "large" ],
[ "keyword", "#" ],
[ "text", " [red yellow-background big]" ],
[ "keyword.bold", "*all bold*" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "text", "\t" ]
]
},
{
"state": "text",
"data": [
[ "markup.underline.list", "https://site" ],
[ "text", " text <" ],
[ "markup.underline.list", "mail@i.am" ],
[ "text", "> " ],
[ "markup.underline.list", "callto:ace" ],
[ "text", " " ],
[ "link", "http://ace.ajaxorg.com" ],
[ "variable.language", "[awesome]" ]
]
},
{
"state": "text",
"data": [
[ "text", " .still normal text" ]
]
},
{
"state": "start",
"data": [
[ "constant.numeric", ".break out thoug should not" ]
]
},
{
"state": "literalBlock",
"data": [
[ "support.function", "---------------------------" ]
]
},
{
"state": "literalBlock",
"data": [
[ "support.function", "///////////////////////////" ]
]
},
{
"state": "dissallowDelimitedBlock",
"data": [
[ "support.function", "---------------------------" ]
]
},
{
"state": "text",
"data": []
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": []
}
]

View file

@ -20,104 +20,91 @@
"state": "start", "state": "start",
"data": [ "data": [
[ "c9searchresults.constant.numeric", " 1" ], [ "c9searchresults.constant.numeric", " 1" ],
[ "c9searchresults.text", ": " ], [ "c9searchresults.text", ": var fs = require(\"fs\");" ]
[ "c9searchresults.text", "var fs = require(\"fs\");" ]
] ]
}, },
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "c9searchresults.constant.numeric", "\t2" ], [ "c9searchresults.constant.numeric", "\t2" ],
[ "c9searchresults.text", ": " ], [ "c9searchresults.text", ": var argv = require('optimist').argv;" ]
[ "c9searchresults.text", "var argv = require('optimist').argv;" ]
] ]
}, },
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "c9searchresults.constant.numeric", "\t3" ], [ "c9searchresults.constant.numeric", "\t3" ],
[ "c9searchresults.text", ": " ], [ "c9searchresults.text", ": var path = require(\"path\");" ]
[ "c9searchresults.text", "var path = require(\"path\");" ]
] ]
}, },
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "c9searchresults.constant.numeric", "\t5" ], [ "c9searchresults.constant.numeric", "\t5" ],
[ "c9searchresults.text", ": " ], [ "c9searchresults.text", ": var clientExtensions = {};" ]
[ "c9searchresults.text", "var clientExtensions = {};" ]
] ]
}, },
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "c9searchresults.constant.numeric", "\t6" ], [ "c9searchresults.constant.numeric", "\t6" ],
[ "c9searchresults.text", ": " ], [ "c9searchresults.text", ": var clientDirs = fs.readdirSync(__dirname + \"/../plugins-client\");" ]
[ "c9searchresults.text", "var clientDirs = fs.readdirSync(__dirname + \"/../plugins-client\");" ]
] ]
}, },
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "c9searchresults.constant.numeric", "\t7" ], [ "c9searchresults.constant.numeric", "\t7" ],
[ "c9searchresults.text", ": " ], [ "c9searchresults.text", ": for (var i = 0; i < clientDirs.length; i++) {" ]
[ "c9searchresults.text", "for (var i = 0; i < clientDirs.length; i++) {" ]
] ]
}, },
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "c9searchresults.constant.numeric", "\t8" ], [ "c9searchresults.constant.numeric", "\t8" ],
[ "c9searchresults.text", ": " ], [ "c9searchresults.text", ": var dir = clientDirs[i];" ]
[ "c9searchresults.text", "var dir = clientDirs[i];" ]
] ]
}, },
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "c9searchresults.constant.numeric", "\t12" ], [ "c9searchresults.constant.numeric", "\t12" ],
[ "c9searchresults.text", ": " ], [ "c9searchresults.text", ": var name = dir.split(\".\")[1];" ]
[ "c9searchresults.text", "var name = dir.split(\".\")[1];" ]
] ]
}, },
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "c9searchresults.constant.numeric", "\t16" ], [ "c9searchresults.constant.numeric", "\t16" ],
[ "c9searchresults.text", ": " ], [ "c9searchresults.text", ": var projectDir = (argv.w && path.resolve(process.cwd(), argv.w)) || process.cwd();" ]
[ "c9searchresults.text", "var projectDir = (argv.w && path.resolve(process.cwd(), argv.w)) || process.cwd();" ]
] ]
}, },
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "c9searchresults.constant.numeric", "\t17" ], [ "c9searchresults.constant.numeric", "\t17" ],
[ "c9searchresults.text", ": " ], [ "c9searchresults.text", ": var fsUrl = \"/workspace\";" ]
[ "c9searchresults.text", "var fsUrl = \"/workspace\";" ]
] ]
}, },
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "c9searchresults.constant.numeric", "\t19" ], [ "c9searchresults.constant.numeric", "\t19" ],
[ "c9searchresults.text", ": " ], [ "c9searchresults.text", ": var port = argv.p || process.env.PORT || 3131;" ]
[ "c9searchresults.text", "var port = argv.p || process.env.PORT || 3131;" ]
] ]
}, },
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "c9searchresults.constant.numeric", "\t20" ], [ "c9searchresults.constant.numeric", "\t20" ],
[ "c9searchresults.text", ": " ], [ "c9searchresults.text", ": var host = argv.l || \"localhost\";" ]
[ "c9searchresults.text", "var host = argv.l || \"localhost\";" ]
] ]
}, },
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "c9searchresults.constant.numeric", "\t22" ], [ "c9searchresults.constant.numeric", "\t22" ],
[ "c9searchresults.text", ": " ], [ "c9searchresults.text", ": var config = {" ]
[ "c9searchresults.text", "var config = {" ]
] ]
}, },
{ {
@ -135,8 +122,7 @@
"state": "start", "state": "start",
"data": [ "data": [
[ "c9searchresults.constant.numeric", "\t2" ], [ "c9searchresults.constant.numeric", "\t2" ],
[ "c9searchresults.text", ": " ], [ "c9searchresults.text", ": var config = require(\"./default\");" ]
[ "c9searchresults.text", "var config = require(\"./default\");" ]
] ]
}, },
{ {
@ -154,8 +140,7 @@
"state": "start", "state": "start",
"data": [ "data": [
[ "c9searchresults.constant.numeric", "\t1" ], [ "c9searchresults.constant.numeric", "\t1" ],
[ "c9searchresults.text", ": " ], [ "c9searchresults.text", ": var config = require(\"./default\");" ]
[ "c9searchresults.text", "var config = require(\"./default\");" ]
] ]
}, },
{ {

View file

@ -13,10 +13,94 @@
"state": "start", "state": "start",
"data": [ "data": [
[ "keyword", "#include" ], [ "keyword", "#include" ],
[ "text", " " ], [ "constant.other", " <iostream>" ]
[ "constant", "<iostream>" ]
] ]
}, },
{
"state": "start",
"data": []
},
{
"state": "directive",
"data": [
[ "keyword", "#include" ],
[ "constant.other.multiline", " \\" ]
]
},
{
"state": "start",
"data": [
[ "constant.other", " <iostream>" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "directive",
"data": [
[ "keyword", "#include" ],
[ "constant.other.multiline", " \\" ]
]
},
{
"state": "directive",
"data": [
[ "constant.other.multiline", " \\" ]
]
},
{
"state": "start",
"data": [
[ "constant.other", " <iostream>" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "directive",
"data": [
[ "keyword", "#include" ],
[ "constant.other.multiline", " \\" ]
]
},
{
"state": "directive",
"data": [
[ "constant.other.multiline", " \\" ]
]
},
{
"state": "start",
"data": [
[ "constant.other", " \"iostream\"" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "keyword", "#include" ],
[ "constant.other", " <boost/asio/io_service.hpp>" ]
]
},
{
"state": "start",
"data": [
[ "keyword", "#include" ],
[ "constant.other", " \"boost/asio/io_service.hpp\"" ]
]
},
{
"state": "start",
"data": []
},
{ {
"state": "start", "state": "start",
"data": [ "data": [
@ -37,7 +121,7 @@
"data": [ "data": [
[ "storage.type", "int" ], [ "storage.type", "int" ],
[ "text", " " ], [ "text", " " ],
[ "entity.name.function", "main" ], [ "identifier", "main" ],
[ "text", " " ], [ "text", " " ],
[ "paren.lparen", "(" ], [ "paren.lparen", "(" ],
[ "paren.rparen", ")" ] [ "paren.rparen", ")" ]
@ -63,8 +147,7 @@
[ "constant.numeric", "3" ], [ "constant.numeric", "3" ],
[ "punctuation.operator", ";" ], [ "punctuation.operator", ";" ],
[ "text", " " ], [ "text", " " ],
[ "comment", "/*" ], [ "comment", "/* foobar */" ]
[ "comment", " foobar */" ]
] ]
}, },
{ {
@ -84,8 +167,7 @@
"data": [ "data": [
[ "text", " " ], [ "text", " " ],
[ "identifier", "a" ], [ "identifier", "a" ],
[ "keyword.operator", "+" ], [ "keyword.operator", "+=" ],
[ "keyword.operator", "=" ],
[ "constant.numeric", "2" ], [ "constant.numeric", "2" ],
[ "punctuation.operator", ";" ], [ "punctuation.operator", ";" ],
[ "text", " " ], [ "text", " " ],
@ -98,13 +180,38 @@
[ "text", " " ], [ "text", " " ],
[ "identifier", "cout" ], [ "identifier", "cout" ],
[ "text", " " ], [ "text", " " ],
[ "keyword.operator", "<" ], [ "keyword.operator", "<<" ],
[ "keyword.operator", "<" ],
[ "text", " " ], [ "text", " " ],
[ "identifier", "a" ], [ "identifier", "a" ],
[ "punctuation.operator", ";" ] [ "punctuation.operator", ";" ]
] ]
}, },
{
"state": "start",
"data": [
[ "text", " " ],
[ "keyword", "#if" ],
[ "constant.other", " VERBOSE >= 2" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "identifier", "prints" ],
[ "paren.lparen", "(" ],
[ "string", "\"trace message\"" ],
[ "paren.rparen", ")" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "keyword", "#endif" ]
]
},
{ {
"state": "start", "state": "start",
"data": [ "data": [
@ -120,5 +227,47 @@
"data": [ "data": [
[ "paren.rparen", "}" ] [ "paren.rparen", "}" ]
] ]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "comment", "/* Print an error message and get out */" ]
]
},
{
"state": "directive",
"data": [
[ "keyword", "#define" ],
[ "constant.other.multiline", " ABORT \\" ]
]
},
{
"state": "directive",
"data": [
[ "constant.other.multiline", " do { \\" ]
]
},
{
"state": "directive",
"data": [
[ "constant.other.multiline", " print( \"Abort\\n\" ); \\" ]
]
},
{
"state": "directive",
"data": [
[ "constant.other.multiline", " exit(8); \\" ]
]
},
{
"state": "start",
"data": [
[ "constant.other", "} while (0) " ],
[ "comment", "/* Note: No semicolon */" ]
]
} }
] ]

View file

@ -12,33 +12,27 @@
"state": "start", "state": "start",
"data": [ "data": [
[ "text", " " ], [ "text", " " ],
[ "string", "\"returns a String parting in a given language" ], [ "string", "\"returns a String parting in a given language\"" ]
[ "string", "\"" ]
] ]
}, },
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "text", " " ], [ "text", " " ],
[ "keyword", "(" ], [ "keyword", "([]" ],
[ "keyword", "[" ],
[ "keyword", "]" ],
[ "text", " " ], [ "text", " " ],
[ "keyword", "(" ], [ "keyword", "(" ],
[ "identifier", "parting" ], [ "identifier", "parting" ],
[ "text", " " ], [ "text", " " ],
[ "string", "\"World" ], [ "string", "\"World\"" ],
[ "string", "\"" ], [ "keyword", "))" ]
[ "keyword", ")" ],
[ "keyword", ")" ]
] ]
}, },
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "text", " " ], [ "text", " " ],
[ "keyword", "(" ], [ "keyword", "([" ],
[ "keyword", "[" ],
[ "support.function", "name" ], [ "support.function", "name" ],
[ "keyword", "]" ], [ "keyword", "]" ],
[ "text", " " ], [ "text", " " ],
@ -47,18 +41,15 @@
[ "text", " " ], [ "text", " " ],
[ "support.function", "name" ], [ "support.function", "name" ],
[ "text", " " ], [ "text", " " ],
[ "string", "\"en" ], [ "string", "\"en\"" ],
[ "string", "\"" ], [ "keyword", "))" ]
[ "keyword", ")" ],
[ "keyword", ")" ]
] ]
}, },
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "text", " " ], [ "text", " " ],
[ "keyword", "(" ], [ "keyword", "([" ],
[ "keyword", "[" ],
[ "support.function", "name" ], [ "support.function", "name" ],
[ "text", " " ], [ "text", " " ],
[ "identifier", "language" ], [ "identifier", "language" ],
@ -109,14 +100,12 @@
"state": "start", "state": "start",
"data": [ "data": [
[ "text", " " ], [ "text", " " ],
[ "string", "\"en" ], [ "string", "\"en\"" ],
[ "string", "\"" ],
[ "text", " " ], [ "text", " " ],
[ "keyword", "(" ], [ "keyword", "(" ],
[ "support.function", "str" ], [ "support.function", "str" ],
[ "text", " " ], [ "text", " " ],
[ "string", "\"Goodbye, " ], [ "string", "\"Goodbye, \"" ],
[ "string", "\"" ],
[ "text", " " ], [ "text", " " ],
[ "support.function", "name" ], [ "support.function", "name" ],
[ "keyword", ")" ] [ "keyword", ")" ]
@ -126,14 +115,12 @@
"state": "start", "state": "start",
"data": [ "data": [
[ "text", " " ], [ "text", " " ],
[ "string", "\"es" ], [ "string", "\"es\"" ],
[ "string", "\"" ],
[ "text", " " ], [ "text", " " ],
[ "keyword", "(" ], [ "keyword", "(" ],
[ "support.function", "str" ], [ "support.function", "str" ],
[ "text", " " ], [ "text", " " ],
[ "string", "\"Adios, " ], [ "string", "\"Adios, \"" ],
[ "string", "\"" ],
[ "text", " " ], [ "text", " " ],
[ "support.function", "name" ], [ "support.function", "name" ],
[ "keyword", ")" ] [ "keyword", ")" ]
@ -143,8 +130,7 @@
"state": "start", "state": "start",
"data": [ "data": [
[ "text", " " ], [ "text", " " ],
[ "keyword", "(" ], [ "keyword", "(throw" ],
[ "keyword", "throw" ],
[ "text", " " ], [ "text", " " ],
[ "keyword", "(" ], [ "keyword", "(" ],
[ "identifier", "IllegalArgumentException" ], [ "identifier", "IllegalArgumentException" ],
@ -158,16 +144,10 @@
[ "keyword", "(" ], [ "keyword", "(" ],
[ "support.function", "str" ], [ "support.function", "str" ],
[ "text", " " ], [ "text", " " ],
[ "string", "\"unsupported language " ], [ "string", "\"unsupported language \"" ],
[ "string", "\"" ],
[ "text", " " ], [ "text", " " ],
[ "identifier", "language" ], [ "identifier", "language" ],
[ "keyword", ")" ], [ "keyword", "))))))" ]
[ "keyword", ")" ],
[ "keyword", ")" ],
[ "keyword", ")" ],
[ "keyword", ")" ],
[ "keyword", ")" ]
] ]
}, },
{ {
@ -182,8 +162,7 @@
[ "text", " " ], [ "text", " " ],
[ "keyword", "(" ], [ "keyword", "(" ],
[ "identifier", "parting" ], [ "identifier", "parting" ],
[ "keyword", ")" ], [ "keyword", "))" ],
[ "keyword", ")" ],
[ "text", " " ], [ "text", " " ],
[ "comment", "; -> Goodbye, World" ] [ "comment", "; -> Goodbye, World" ]
] ]
@ -197,10 +176,8 @@
[ "keyword", "(" ], [ "keyword", "(" ],
[ "identifier", "parting" ], [ "identifier", "parting" ],
[ "text", " " ], [ "text", " " ],
[ "string", "\"Mark" ], [ "string", "\"Mark\"" ],
[ "string", "\"" ], [ "keyword", "))" ],
[ "keyword", ")" ],
[ "keyword", ")" ],
[ "text", " " ], [ "text", " " ],
[ "comment", "; -> Goodbye, Mark" ] [ "comment", "; -> Goodbye, Mark" ]
] ]
@ -214,13 +191,10 @@
[ "keyword", "(" ], [ "keyword", "(" ],
[ "identifier", "parting" ], [ "identifier", "parting" ],
[ "text", " " ], [ "text", " " ],
[ "string", "\"Mark" ], [ "string", "\"Mark\"" ],
[ "string", "\"" ],
[ "text", " " ], [ "text", " " ],
[ "string", "\"es" ], [ "string", "\"es\"" ],
[ "string", "\"" ], [ "keyword", "))" ],
[ "keyword", ")" ],
[ "keyword", ")" ],
[ "text", " " ], [ "text", " " ],
[ "comment", "; -> Adios, Mark" ] [ "comment", "; -> Adios, Mark" ]
] ]
@ -234,13 +208,10 @@
[ "keyword", "(" ], [ "keyword", "(" ],
[ "identifier", "parting" ], [ "identifier", "parting" ],
[ "text", " " ], [ "text", " " ],
[ "string", "\"Mark" ], [ "string", "\"Mark\"" ],
[ "string", "\"" ],
[ "text", ", " ], [ "text", ", " ],
[ "string", "\"xy" ], [ "string", "\"xy\"" ],
[ "string", "\"" ], [ "keyword", "))" ],
[ "keyword", ")" ],
[ "keyword", ")" ],
[ "text", " " ], [ "text", " " ],
[ "comment", "; -> java.lang.IllegalArgumentException: unsupported language xy" ] [ "comment", "; -> java.lang.IllegalArgumentException: unsupported language xy" ]
] ]

View file

@ -50,7 +50,8 @@
"data": [ "data": [
[ "text", " " ], [ "text", " " ],
[ "identifier", "console" ], [ "identifier", "console" ],
[ "identifier", ".log" ], [ "punctuation.operator", "." ],
[ "identifier", "log" ],
[ "text", " " ], [ "text", " " ],
[ "string", "'qstring'" ], [ "string", "'qstring'" ],
[ "text", " " ], [ "text", " " ],
@ -100,7 +101,7 @@
"data": [ "data": [
[ "keyword", "do" ], [ "keyword", "do" ],
[ "text", " " ], [ "text", " " ],
[ "keyword.operator", "->" ] [ "storage.type", "->" ]
] ]
}, },
{ {
@ -131,7 +132,8 @@
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "text", " " ], [ "text", " " ],
[ "string.regex", "/regex/imgy" ], [ "string.regex", "/regex/imgy" ],
[ "identifier", ".test" ], [ "punctuation.operator", "." ],
[ "identifier", "test" ],
[ "text", " " ], [ "text", " " ],
[ "string.regex", "///" ] [ "string.regex", "///" ]
] ]

View file

@ -2,8 +2,7 @@
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "comment", "<!--" ], [ "comment", "<!--- hello world --->" ]
[ "comment", "- hello world --->" ]
] ]
}, },
{ {
@ -19,7 +18,7 @@
[ "entity.other.attribute-name", "welcome" ], [ "entity.other.attribute-name", "welcome" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"Hello World!\"" ], [ "string", "\"Hello World!\"" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -31,11 +30,11 @@
"data": [ "data": [
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "cfoutput" ], [ "meta.tag.tag-name", "cfoutput" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "#welcome#" ], [ "text", "#welcome#" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "cfoutput" ], [ "meta.tag.tag-name", "cfoutput" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
} }
] ]

View file

@ -0,0 +1,537 @@
[
{
"state": "start",
"data": [
[ "identifier", "main" ],
[ "text", "() {" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "identifier", "print" ],
[ "text", "(" ],
[ "string", "'Hello World!'" ],
[ "text", ");" ]
]
},
{
"state": "start",
"data": [
[ "text", "}" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "storage.type.primitive.dart", "int" ],
[ "text", " " ],
[ "identifier", "fib" ],
[ "text", "(" ],
[ "storage.type.primitive.dart", "int" ],
[ "text", " " ],
[ "identifier", "n" ],
[ "text", ") " ],
[ "keyword.operator.assignment.dart", "=" ],
[ "keyword.operator.comparison.dart", ">" ],
[ "text", " (" ],
[ "identifier", "n" ],
[ "text", " " ],
[ "keyword.operator.comparison.dart", ">" ],
[ "text", " " ],
[ "constant.numeric", "1" ],
[ "text", ") " ],
[ "keyword.control.ternary.dart", "?" ],
[ "text", " (" ],
[ "identifier", "fib" ],
[ "text", "(" ],
[ "identifier", "n" ],
[ "text", " " ],
[ "keyword.operator.arithmetic.dart", "-" ],
[ "text", " " ],
[ "constant.numeric", "1" ],
[ "text", ") " ],
[ "keyword.operator.arithmetic.dart", "+" ],
[ "text", " " ],
[ "identifier", "fib" ],
[ "text", "(" ],
[ "identifier", "n" ],
[ "text", " " ],
[ "keyword.operator.arithmetic.dart", "-" ],
[ "text", " " ],
[ "constant.numeric", "2" ],
[ "text", ")) " ],
[ "keyword.control.ternary.dart", ":" ],
[ "text", " " ],
[ "identifier", "n" ],
[ "text", ";" ]
]
},
{
"state": "start",
"data": [
[ "identifier", "main" ],
[ "text", "() {" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "identifier", "print" ],
[ "text", "(" ],
[ "string", "'fib(20) = ${fib(20)}'" ],
[ "text", ");" ]
]
},
{
"state": "start",
"data": [
[ "text", "}" ]
]
},
{
"state": "comment",
"data": [
[ "comment", "/*asd" ]
]
},
{
"state": "comment",
"data": [
[ "comment", "asdad" ]
]
},
{
"state": "start",
"data": [
[ "comment", "*/" ]
]
},
{
"state": "start",
"data": [
[ "constant.numeric", "0.67" ]
]
},
{
"state": "start",
"data": [
[ "constant.numeric", "77" ]
]
},
{
"state": "start",
"data": [
[ "text", "." ],
[ "constant.numeric", "86" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "keyword.other.import.dart", "#import" ],
[ "text", "(" ],
[ "string", "\"http://dartwatch.com/myOtherLibrary.dart\"" ],
[ "text", ");" ]
]
},
{
"state": "start",
"data": [
[ "keyword.other.import.dart", "#import" ],
[ "text", "(" ],
[ "string", "\"myOtherLibrary.dart\"" ],
[ "text", ", " ],
[ "keyword.other.import.dart", "prefix" ],
[ "text", ":" ],
[ "string", "\"lib1\"" ],
[ "text", ");" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "qqdoc",
"data": [
[ "string", "\"\"\"asdasdads" ]
]
},
{
"state": "qqdoc",
"data": [
[ "string", "asdadsadsasd" ]
]
},
{
"state": "start",
"data": [
[ "string", "asdasdasdad\"\"\"" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ]
]
},
{
"state": "start",
"data": [
[ "string", "'23424'" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "constant.numeric", "0x234" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "identifier", "foo" ],
[ "text", " " ],
[ "keyword.operator.dart", "is" ],
[ "text", " " ],
[ "identifier", "bar" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "storage.type.primitive.dart", "int" ],
[ "text", " " ],
[ "identifier", "x" ],
[ "text", " " ],
[ "keyword.operator.assignment.dart", "=" ],
[ "text", " " ],
[ "constant.numeric", "4" ],
[ "text", " " ],
[ "keyword.operator.bitwise.dart", "<<" ],
[ "text", " " ],
[ "constant.numeric", "10" ],
[ "text", " " ]
]
},
{
"state": "start",
"data": [
[ "comment", "// Create a class for Point." ]
]
},
{
"state": "start",
"data": [
[ "keyword.declaration.dart", "class" ],
[ "text", " " ],
[ "identifier", "Point" ],
[ "text", " {" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "comment", "// Final variables cannot be changed once they are assigned." ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "comment", "// Create two instance variables." ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "storage.modifier.dart", "final" ],
[ "text", " " ],
[ "storage.type.primitive.dart", "num" ],
[ "text", " " ],
[ "identifier", "x" ],
[ "text", ", " ],
[ "identifier", "y" ],
[ "text", ";" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "comment", "// A constructor, with syntactic sugar for setting instance variables." ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "identifier", "Point" ],
[ "text", "(" ],
[ "variable.language.dart", "this" ],
[ "text", "." ],
[ "identifier", "x" ],
[ "text", ", " ],
[ "variable.language.dart", "this" ],
[ "text", "." ],
[ "identifier", "y" ],
[ "text", ");" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "comment", "// A named constructor with an initializer list." ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "identifier", "Point" ],
[ "text", "." ],
[ "identifier", "origin" ],
[ "text", "() " ],
[ "keyword.control.ternary.dart", ":" ],
[ "text", " " ],
[ "identifier", "x" ],
[ "text", " " ],
[ "keyword.operator.assignment.dart", "=" ],
[ "text", " " ],
[ "constant.numeric", "0" ],
[ "text", ", " ],
[ "identifier", "y" ],
[ "text", " " ],
[ "keyword.operator.assignment.dart", "=" ],
[ "text", " " ],
[ "constant.numeric", "0" ],
[ "text", ";" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "comment", "// A method." ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "storage.type.primitive.dart", "num" ],
[ "text", " " ],
[ "identifier", "distanceTo" ],
[ "text", "(" ],
[ "identifier", "Point" ],
[ "text", " " ],
[ "identifier", "other" ],
[ "text", ") {" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "storage.type.primitive.dart", "var" ],
[ "text", " " ],
[ "identifier", "dx" ],
[ "text", " " ],
[ "keyword.operator.assignment.dart", "=" ],
[ "text", " " ],
[ "identifier", "x" ],
[ "text", " " ],
[ "keyword.operator.arithmetic.dart", "-" ],
[ "text", " " ],
[ "identifier", "other" ],
[ "text", "." ],
[ "identifier", "x" ],
[ "text", ";" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "storage.type.primitive.dart", "var" ],
[ "text", " " ],
[ "identifier", "dy" ],
[ "text", " " ],
[ "keyword.operator.assignment.dart", "=" ],
[ "text", " " ],
[ "identifier", "y" ],
[ "text", " " ],
[ "keyword.operator.arithmetic.dart", "-" ],
[ "text", " " ],
[ "identifier", "other" ],
[ "text", "." ],
[ "identifier", "y" ],
[ "text", ";" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "keyword.control.dart", "return" ],
[ "text", " " ],
[ "identifier", "sqrt" ],
[ "text", "(" ],
[ "identifier", "dx" ],
[ "text", " " ],
[ "keyword.operator.arithmetic.dart", "*" ],
[ "text", " " ],
[ "identifier", "dx" ],
[ "text", " " ],
[ "keyword.operator.arithmetic.dart", "+" ],
[ "text", " " ],
[ "identifier", "dy" ],
[ "text", " " ],
[ "keyword.operator.arithmetic.dart", "*" ],
[ "text", " " ],
[ "identifier", "dy" ],
[ "text", ");" ]
]
},
{
"state": "start",
"data": [
[ "text", " }" ]
]
},
{
"state": "start",
"data": [
[ "text", "}" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "comment", "// Check for null." ]
]
},
{
"state": "start",
"data": [
[ "storage.type.primitive.dart", "var" ],
[ "text", " " ],
[ "identifier", "unicorn" ],
[ "text", ";" ]
]
},
{
"state": "start",
"data": [
[ "identifier", "assert" ],
[ "text", "(" ],
[ "identifier", "unicorn" ],
[ "text", " " ],
[ "keyword.operator.comparison.dart", "==" ],
[ "text", " " ],
[ "constant.language.dart", "null" ],
[ "text", ");" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "comment", "// Check for NaN." ]
]
},
{
"state": "start",
"data": [
[ "storage.type.primitive.dart", "var" ],
[ "text", " " ],
[ "identifier", "iMeantToDoThis" ],
[ "text", " " ],
[ "keyword.operator.assignment.dart", "=" ],
[ "text", " " ],
[ "constant.numeric", "0" ],
[ "keyword.operator.arithmetic.dart", "/" ],
[ "constant.numeric", "0" ],
[ "text", ";" ]
]
},
{
"state": "start",
"data": [
[ "identifier", "assert" ],
[ "text", "(" ],
[ "identifier", "iMeantToDoThis" ],
[ "text", "." ],
[ "identifier", "isNaN" ],
[ "text", "());" ]
]
},
{
"state": "start",
"data": []
}
]

View file

@ -2,8 +2,7 @@
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "variable", "diff" ], [ "variable", "diff --git" ],
[ "variable", " --git" ],
[ "keyword", " a/lib/ace/edit_session.js" ], [ "keyword", " a/lib/ace/edit_session.js" ],
[ "variable", " b/lib/ace/edit_session.js" ] [ "variable", " b/lib/ace/edit_session.js" ]
] ]
@ -381,8 +380,7 @@
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "variable", "diff" ], [ "variable", "diff --git" ],
[ "variable", " --git" ],
[ "keyword", " a/lib/ace/editor.js" ], [ "keyword", " a/lib/ace/editor.js" ],
[ "variable", " b/lib/ace/editor.js" ] [ "variable", " b/lib/ace/editor.js" ]
] ]
@ -647,8 +645,7 @@
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "variable", "diff" ], [ "variable", "diff --git" ],
[ "variable", " --git" ],
[ "keyword", " a/lib/ace/search_highlight.js" ], [ "keyword", " a/lib/ace/search_highlight.js" ],
[ "variable", " b/lib/ace/search_highlight.js" ] [ "variable", " b/lib/ace/search_highlight.js" ]
] ]

View file

@ -41,7 +41,7 @@
"data": [ "data": [
[ "keyword", "void" ], [ "keyword", "void" ],
[ "text", " " ], [ "text", " " ],
[ "entity.name.function", "main" ], [ "identifier", "main" ],
[ "paren.lparen", "(" ], [ "paren.lparen", "(" ],
[ "paren.rparen", ")" ], [ "paren.rparen", ")" ],
[ "text", " " ], [ "text", " " ],

View file

@ -102,8 +102,7 @@
[ "identifier", "pi" ], [ "identifier", "pi" ],
[ "paren.lparen", "(" ], [ "paren.lparen", "(" ],
[ "constant.numeric", "5000" ], [ "constant.numeric", "5000" ],
[ "paren.rparen", ")" ], [ "paren.rparen", "))" ]
[ "paren.rparen", ")" ]
] ]
}, },
{ {
@ -203,8 +202,7 @@
[ "identifier", "float64" ], [ "identifier", "float64" ],
[ "paren.lparen", "(" ], [ "paren.lparen", "(" ],
[ "identifier", "k" ], [ "identifier", "k" ],
[ "paren.rparen", ")" ], [ "paren.rparen", "))" ]
[ "paren.rparen", ")" ]
] ]
}, },
{ {
@ -259,11 +257,9 @@
[ "text", " " ], [ "text", " " ],
[ "identifier", "f" ], [ "identifier", "f" ],
[ "text", " " ], [ "text", " " ],
[ "keyword.operator", "+" ], [ "keyword.operator", "+=" ],
[ "keyword.operator", "=" ],
[ "text", " " ], [ "text", " " ],
[ "keyword.operator", "<" ], [ "keyword.operator", "<-" ],
[ "keyword.operator", "-" ],
[ "identifier", "ch" ] [ "identifier", "ch" ]
] ]
}, },
@ -321,8 +317,7 @@
[ "text", " " ], [ "text", " " ],
[ "identifier", "ch" ], [ "identifier", "ch" ],
[ "text", " " ], [ "text", " " ],
[ "keyword.operator", "<" ], [ "keyword.operator", "<-" ],
[ "keyword.operator", "-" ],
[ "text", " " ], [ "text", " " ],
[ "constant.numeric", "4" ], [ "constant.numeric", "4" ],
[ "text", " " ], [ "text", " " ],

View file

@ -162,8 +162,7 @@
[ "identifier", "salary" ], [ "identifier", "salary" ],
[ "text", ":" ], [ "text", ":" ],
[ "constant.numeric", "50" ], [ "constant.numeric", "50" ],
[ "rparen", ")" ], [ "rparen", ")]" ]
[ "rparen", "]" ]
] ]
}, },
{ {
@ -195,8 +194,7 @@
[ "text", " " ], [ "text", " " ],
[ "identifier", "e" ], [ "identifier", "e" ],
[ "text", " " ], [ "text", " " ],
[ "keyword.operator", "-" ], [ "keyword.operator", "->" ],
[ "keyword.operator", ">" ],
[ "text", " " ], [ "text", " " ],
[ "identifier", "e" ], [ "identifier", "e" ],
[ "text", "." ], [ "text", "." ],
@ -279,8 +277,7 @@
[ "text", " " ], [ "text", " " ],
[ "identifier", "e" ], [ "identifier", "e" ],
[ "text", " " ], [ "text", " " ],
[ "keyword.operator", "-" ], [ "keyword.operator", "->" ],
[ "keyword.operator", ">" ],
[ "text", " " ], [ "text", " " ],
[ "identifier", "e" ], [ "identifier", "e" ],
[ "text", "." ], [ "text", "." ],
@ -350,8 +347,7 @@
[ "text", " " ], [ "text", " " ],
[ "identifier", "e" ], [ "identifier", "e" ],
[ "text", " " ], [ "text", " " ],
[ "keyword.operator", "-" ], [ "keyword.operator", "->" ],
[ "keyword.operator", ">" ],
[ "text", " " ], [ "text", " " ],
[ "identifier", "e" ], [ "identifier", "e" ],
[ "text", "." ], [ "text", "." ],
@ -398,8 +394,7 @@
[ "identifier", "emps" ], [ "identifier", "emps" ],
[ "lparen", "[" ], [ "lparen", "[" ],
[ "constant.numeric", "0" ], [ "constant.numeric", "0" ],
[ "rparen", "]" ], [ "rparen", "])" ],
[ "rparen", ")" ],
[ "text", " " ], [ "text", " " ],
[ "comment", "// true" ] [ "comment", "// true" ]
] ]
@ -457,8 +452,7 @@
[ "text", " " ], [ "text", " " ],
[ "identifier", "reader" ], [ "identifier", "reader" ],
[ "text", " " ], [ "text", " " ],
[ "keyword.operator", "-" ], [ "keyword.operator", "->" ],
[ "keyword.operator", ">" ],
[ "text", " " ], [ "text", " " ],
[ "identifier", "doSomethingWith" ], [ "identifier", "doSomethingWith" ],
[ "lparen", "(" ], [ "lparen", "(" ],

View file

@ -0,0 +1,280 @@
[
{
"state": "start",
"data": [
[ "keyword.other.doctype", "!!!5" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "punctuation.section.comment", "# <!--[if lt IE 7]> <html class=\"no-js lt-ie9 lt-ie8 lt-ie7\" lang=\"en\"> <![endif]-->" ]
]
},
{
"state": "start",
"data": [
[ "punctuation.section.comment", "# <!--[if IE 7]> <html class=\"no-js lt-ie9 lt-ie8\" lang=\"en\"> <![endif]-->" ]
]
},
{
"state": "start",
"data": [
[ "punctuation.section.comment", "# <!--[if IE 8]> <html class=\"no-js lt-ie9\" lang=\"en\"> <![endif]-->" ]
]
},
{
"state": "start",
"data": [
[ "punctuation.section.comment", "# <!--[if gt IE 8]><!--> <html class=\"no-js\" lang=\"en\"> <!--<![endif]-->" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "punctuation.section.comment", "/adasdasdad" ]
]
},
{
"state": "start",
"data": [
[ "entity.name.tag.haml", "%div" ],
[ "punctuation.section", "{" ],
[ "constant.other.symbol.ruby", ":id" ],
[ "text", " => " ],
[ "string", "\"#{@item.type}_#{@item.number}\"" ],
[ "text", ", " ],
[ "constant.other.symbol.ruby", ":class" ],
[ "text", " => " ],
[ "string", "'#{@item.type} #{@item.urgency}'" ],
[ "text", ", " ],
[ "constant.other.symbol.ruby", ":phoney" ],
[ "text", " => " ],
[ "string", "`asdasdasd`" ],
[ "punctuation.section", "}" ]
]
},
{
"state": "start",
"data": [
[ "punctuation.section.comment", "/ file: app/views/movies/index.html.haml" ]
]
},
{
"state": "start",
"data": [
[ "meta.escape.haml", "\\d" ]
]
},
{
"state": "start",
"data": [
[ "entity.name.tag.haml", "%ads:" ],
[ "punctuation.section", "{" ],
[ "constant.other.symbol.ruby", ":bleh" ],
[ "text", " => " ],
[ "constant.numeric", "33" ],
[ "punctuation.section", "}" ]
]
},
{
"state": "embedded_ruby",
"data": [
[ "entity.name.tag.haml", "%p" ],
[ "text", "==ddd==" ]
]
},
{
"state": "start",
"data": [
[ "text", " Date/Time:" ]
]
},
{
"state": "embedded_ruby",
"data": [
[ "text", " - " ],
[ "identifier", "now" ],
[ "text", " = " ],
[ "support.class", "DateTime" ],
[ "text", "." ],
[ "identifier", "now" ],
[ "text", " " ]
]
},
{
"state": "start",
"data": [
[ "entity.name.tag.haml", " %strong" ],
[ "text", "= now" ]
]
},
{
"state": "embedded_ruby",
"data": [
[ "text", " = " ],
[ "keyword", "if" ],
[ "text", " " ],
[ "identifier", "now" ],
[ "text", " " ],
[ "support.class", "DateTime" ],
[ "text", "." ],
[ "identifier", "parse" ],
[ "text", "(\"" ],
[ "support.class", "December" ],
[ "text", " " ],
[ "constant.numeric", "31" ],
[ "text", ", " ],
[ "constant.numeric", "2006" ],
[ "text", "\")" ]
]
},
{
"state": "embedded_ruby",
"data": [
[ "text", " = \"" ],
[ "support.class", "Happy" ],
[ "text", " " ],
[ "identifier", "new" ],
[ "text", " \" + \"" ],
[ "identifier", "year" ],
[ "text", "!\"" ]
]
},
{
"state": "start",
"data": [
[ "entity.name.tag.haml", "%sfd" ],
[ "entity.other.attribute-name.class.haml", ".dfdfg" ]
]
},
{
"state": "start",
"data": [
[ "punctuation.section.comment", "#content" ]
]
},
{
"state": "start",
"data": [
[ "text", " .title" ]
]
},
{
"state": "start",
"data": [
[ "entity.name.tag.haml", " %h1" ],
[ "text", "= @title" ]
]
},
{
"state": "embedded_ruby",
"data": [
[ "text", " = " ],
[ "support.function", "link_to" ],
[ "text", " '" ],
[ "support.class", "Home" ],
[ "text", "', " ],
[ "identifier", "home_url" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "punctuation.section.comment", " #contents" ]
]
},
{
"state": "start",
"data": [
[ "entity.name.tag.haml", "%div" ],
[ "entity.other.attribute-name.id.haml", "#content" ]
]
},
{
"state": "start",
"data": [
[ "entity.name.tag.haml", " %div" ],
[ "entity.other.attribute-name.class.haml", ".articles" ]
]
},
{
"state": "start",
"data": [
[ "entity.name.tag.haml", " %div" ],
[ "entity.other.attribute-name.class.haml", ".article.title" ],
[ "text", " Blah" ]
]
},
{
"state": "start",
"data": [
[ "entity.name.tag.haml", " %div" ],
[ "entity.other.attribute-name.class.haml", ".article.date" ],
[ "text", " " ],
[ "constant.numeric", "2006-11-05" ]
]
},
{
"state": "start",
"data": [
[ "entity.name.tag.haml", " %div" ],
[ "entity.other.attribute-name.class.haml", ".article.entry" ]
]
},
{
"state": "start",
"data": [
[ "text", " Neil Patrick Harris " ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "entity.name.tag.haml", "%div" ],
[ "text", "[@user, " ],
[ "constant.other.symbol.ruby", ":greeting" ],
[ "text", "]" ]
]
},
{
"state": "start",
"data": [
[ "entity.name.tag.haml", " %bar" ],
[ "text", "[" ],
[ "constant.numeric", "290" ],
[ "text", "]/" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "string.quoted.double", "==Hello!==" ]
]
},
{
"state": "start",
"data": []
}
]

View file

@ -4,7 +4,7 @@
"data": [ "data": [
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "html" ], [ "meta.tag.tag-name", "html" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -13,7 +13,7 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "head" ], [ "meta.tag.tag-name", "head" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -30,7 +30,7 @@
[ "entity.other.attribute-name", "type" ], [ "entity.other.attribute-name", "type" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"text/css\"" ], [ "string", "\"text/css\"" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -88,7 +88,7 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name.style", "style" ], [ "meta.tag.tag-name.style", "style" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -101,7 +101,7 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "head" ], [ "meta.tag.tag-name", "head" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -110,7 +110,7 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "body" ], [ "meta.tag.tag-name", "body" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -123,11 +123,11 @@
[ "entity.other.attribute-name", "style" ], [ "entity.other.attribute-name", "style" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"color:red\"" ], [ "string", "\"color:red\"" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "Juhu Kinners" ], [ "text", "Juhu Kinners" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "h1" ], [ "meta.tag.tag-name", "h1" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -136,7 +136,7 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "body" ], [ "meta.tag.tag-name", "body" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -144,7 +144,7 @@
"data": [ "data": [
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "html" ], [ "meta.tag.tag-name", "html" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
} }
] ]

View file

@ -0,0 +1,309 @@
[
{
"state": "start",
"data": [
[ "keyword.other.doctype.jade", "!!!doctype" ]
]
},
{
"state": "start",
"data": [
[ "keyword.other.doctype.jade", "!!!5" ]
]
},
{
"state": "start",
"data": [
[ "keyword.other.doctype.jade", "!!!" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "keyword.control.import.include.jade", "include" ],
[ "text", " something" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "keyword.control.import.include.jade", " include" ],
[ "text", " another_thing" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "punctuation.section.comment", " // let's talk about it" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "comment_block",
"data": [
[ "punctuation.section.comment", "//" ]
]
},
{
"state": "comment_block",
"data": [
[ "comment.block.jade", " here it is. a block comment!" ]
]
},
{
"state": "comment_block",
"data": [
[ "comment.block.jade", " and another row!" ]
]
},
{
"state": "start",
"data": [
[ "text", "but not here." ]
]
},
{
"state": "start",
"data": []
},
{
"state": "comment_block",
"data": [
[ "punctuation.section.comment", " // " ]
]
},
{
"state": "comment_block",
"data": [
[ "comment.block.jade", " a far spaced" ]
]
},
{
"state": "comment_block",
"data": [
[ "comment.block.jade", " should be lack of block" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "punctuation.section.comment", " // also not a comment" ]
]
},
{
"state": "start",
"data": [
[ "meta.tag.any.jade", " div" ],
[ "entity.other.attribute-name.class.jade", ".attemptAtBlock" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ]
]
},
{
"state": "start",
"data": [
[ "meta.tag.any.jade", " span" ],
[ "entity.other.attribute-name.id.jade", "#myName" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "string.interpolated.jade", "#{implicit}" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "string.interpolated.jade", "!{more_explicit}" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "suport.type.attribute.id.jade", "#idDiv" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "suport.type.attribute.class.jade", ".idDiv" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "meta.tag.any.jade", " test" ],
[ "punctuation", "(" ],
[ "entity.other.attribute-name.jade", "id" ],
[ "text", "=" ],
[ "string", "\"tag\"" ],
[ "punctuation", ")" ]
]
},
{
"state": "start",
"data": [
[ "meta.tag.any.jade", " header" ],
[ "punctuation", "(" ],
[ "entity.other.attribute-name.jade", "id" ],
[ "text", "=" ],
[ "string", "\"tag\"" ],
[ "text", ", " ],
[ "entity.other.attribute-name.jade", "blah" ],
[ "text", "=" ],
[ "string", "\"foo\"" ],
[ "text", ", " ],
[ "entity.other.attribute-name.jade", "meh" ],
[ "text", "=" ],
[ "string", "\"aads\"" ],
[ "punctuation", ")" ]
]
},
{
"state": "start",
"data": [
[ "storage.type.function.jade", "mixin" ],
[ "entity.name.function.jade", " article" ],
[ "punctuation.definition.parameters.begin.jade", "(" ],
[ "variable.parameter.function.jade", "obj, parents" ],
[ "punctuation.definition.parameters.end.jade", ")" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "storage.type.function.jade", " mixin" ],
[ "entity.name.function.jade", " bleh" ],
[ "punctuation.definition.parameters.begin.jade", "(" ],
[ "punctuation.definition.parameters.end.jade", ")" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "storage.type.function.jade", " mixin" ],
[ "entity.name.function.jade", " clever-name" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "source.js.embedded.jade", " -" ],
[ "storage.type", "var" ],
[ "text", " " ],
[ "identifier", "x" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "string", "\"0\"" ],
[ "text", ";" ]
]
},
{
"state": "start",
"data": [
[ "source.js.embedded.jade", " -" ],
[ "text", " " ],
[ "identifier", "y" ],
[ "text", " " ],
[ "identifier", "each" ],
[ "text", " z" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "source.js.embedded.jade", " -" ],
[ "text", " " ],
[ "storage.type", "var" ],
[ "text", " " ],
[ "identifier", "items" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "paren.lparen", "[" ],
[ "string", "\"one\"" ],
[ "punctuation.operator", "," ],
[ "text", " " ],
[ "string", "\"two\"" ],
[ "punctuation.operator", "," ],
[ "text", " " ],
[ "string", "\"three\"" ],
[ "text", "]" ]
]
},
{
"state": "start",
"data": [
[ "meta.tag.any.jade", " each" ],
[ "text", " item in items" ]
]
},
{
"state": "start",
"data": [
[ "meta.tag.any.jade", " li" ],
[ "text", "= item" ]
]
}
]

View file

@ -46,7 +46,7 @@
"state": "regex_allowed", "state": "regex_allowed",
"data": [ "data": [
[ "text", " " ], [ "text", " " ],
[ "identifier", "alert" ], [ "support.function", "alert" ],
[ "paren.lparen", "(" ], [ "paren.lparen", "(" ],
[ "identifier", "items" ], [ "identifier", "items" ],
[ "paren.lparen", "[" ], [ "paren.lparen", "[" ],
@ -107,8 +107,7 @@
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "text", " " ], [ "text", " " ],
[ "string.regexp", "/d" ], [ "string.regexp", "/d" ],
[ "constant.language.escape", "{1,2}" ], [ "constant.language.escape", "{1,2}?" ],
[ "constant.language.escape", "?" ],
[ "string.regexp", "f{e}" ], [ "string.regexp", "f{e}" ],
[ "invalid", "++" ], [ "invalid", "++" ],
[ "string.regexp", "r" ], [ "string.regexp", "r" ],
@ -120,12 +119,10 @@
[ "string.regexp.charachterclass", "r" ], [ "string.regexp.charachterclass", "r" ],
[ "constant.language.escape", "-" ], [ "constant.language.escape", "-" ],
[ "string.regexp.charachterclass", "o" ], [ "string.regexp.charachterclass", "o" ],
[ "regexp.keyword.operator", "\\f" ], [ "regexp.keyword.operator", "\\f\\f" ],
[ "regexp.keyword.operator", "\\f" ],
[ "string.regexp.charachterclass", "[" ], [ "string.regexp.charachterclass", "[" ],
[ "regexp.keyword.operator", "\\f" ], [ "regexp.keyword.operator", "\\f" ],
[ "constant.language.escape", "]" ], [ "constant.language.escape", "]?" ],
[ "constant.language.escape", "?" ],
[ "string.regexp", "r" ], [ "string.regexp", "r" ],
[ "invalid", "{7}+" ], [ "invalid", "{7}+" ],
[ "string.regexp", "r" ], [ "string.regexp", "r" ],
@ -133,23 +130,16 @@
[ "string.regexp", "7}" ], [ "string.regexp", "7}" ],
[ "constant.language.escape", "+" ], [ "constant.language.escape", "+" ],
[ "string.regexp", "rr--rr" ], [ "string.regexp", "rr--rr" ],
[ "constant.language.escape", "$" ], [ "constant.language.escape", "$^(?:" ],
[ "constant.language.escape", "^" ],
[ "constant.language.escape", "(?:" ],
[ "string.regexp", "d" ], [ "string.regexp", "d" ],
[ "constant.language.escape", "|" ], [ "constant.language.escape", "|" ],
[ "string.regexp", "s" ], [ "string.regexp", "s" ],
[ "constant.language.escape", ")" ], [ "constant.language.escape", ")(?=" ],
[ "constant.language.escape", "(?=" ],
[ "string.regexp", "a" ], [ "string.regexp", "a" ],
[ "constant.language.escape", "|" ], [ "constant.language.escape", "|)(?!" ],
[ "constant.language.escape", ")" ],
[ "constant.language.escape", "(?!" ],
[ "string.regexp", "y" ], [ "string.regexp", "y" ],
[ "constant.language.escape", ")[]" ], [ "constant.language.escape", ")[]|" ],
[ "constant.language.escape", "|" ], [ "invalid", "$?" ],
[ "constant.language.escape", "$" ],
[ "constant.language.escape", "?" ],
[ "constant.language.escape", "|" ], [ "constant.language.escape", "|" ],
[ "invalid", "^*" ], [ "invalid", "^*" ],
[ "string.regexp", "/" ], [ "string.regexp", "/" ],

View file

@ -0,0 +1,569 @@
[
{
"state": "start",
"data": [
[ "meta.tag", "<" ],
[ "meta.tag.tag-name", "html" ],
[ "meta.tag.r", ">" ]
]
},
{
"state": "start",
"data": [
[ "meta.tag", "<" ],
[ "meta.tag.tag-name", "body" ],
[ "meta.tag.r", ">" ]
]
},
{
"state": "js-start",
"data": [
[ "text", " " ],
[ "meta.tag", "<" ],
[ "meta.tag.tag-name.script", "script" ],
[ "meta.tag.r", ">" ]
]
},
{
"state": "js-regex_allowed",
"data": [
[ "text", " " ],
[ "storage.type", "var" ],
[ "text", " " ],
[ "identifier", "x" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "string", "\"abc\"" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "js-regex_allowed",
"data": [
[ "text", " " ],
[ "storage.type", "function" ],
[ "text", " " ],
[ "identifier", "y" ],
[ "text", " " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "js-start",
"data": [
[ "text", " " ],
[ "paren.rparen", "}" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "meta.tag", "</" ],
[ "meta.tag.tag-name.script", "script" ],
[ "meta.tag.r", ">" ]
]
},
{
"state": "css-start",
"data": [
[ "text", " " ],
[ "meta.tag", "<" ],
[ "meta.tag.tag-name.style", "style" ],
[ "meta.tag.r", ">" ]
]
},
{
"state": "css-ruleset",
"data": [
[ "text", " " ],
[ "variable", ".class" ],
[ "text", " " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "css-ruleset",
"data": [
[ "text", " " ],
[ "support.type", "background" ],
[ "text", ": " ],
[ "constant.numeric", "#124356" ],
[ "text", ";" ]
]
},
{
"state": "css-start",
"data": [
[ "text", " " ],
[ "paren.rparen", "}" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "meta.tag", "</" ],
[ "meta.tag.tag-name.style", "style" ],
[ "meta.tag.r", ">" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "meta.tag", "<" ],
[ "meta.tag.tag-name", "p" ],
[ "meta.tag.r", ">" ]
]
},
{
"state": "start",
"data": [
[ "text", " Today's date: " ],
[ "meta.tag", "<%" ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "lparen", "(" ],
[ "keyword", "new" ],
[ "text", " " ],
[ "identifier", "java" ],
[ "text", "." ],
[ "identifier", "util" ],
[ "text", "." ],
[ "identifier", "Date" ],
[ "lparen", "(" ],
[ "rparen", "))" ],
[ "text", "." ],
[ "identifier", "toLocaleString" ],
[ "lparen", "(" ],
[ "rparen", ")" ],
[ "meta.tag", "%>" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "meta.tag", "</" ],
[ "meta.tag.tag-name", "p" ],
[ "meta.tag.r", ">" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "meta.tag", "<%" ],
[ "keyword.operator", "!" ],
[ "text", " " ],
[ "keyword", "int" ],
[ "text", " " ],
[ "identifier", "i" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "constant.numeric", "0" ],
[ "text", "; " ],
[ "meta.tag", "%>" ]
]
},
{
"state": "jsp-start",
"data": [
[ "text", " " ],
[ "meta.tag", "<jsp:declaration>" ]
]
},
{
"state": "jsp-start",
"data": [
[ "text", " " ],
[ "keyword", "int" ],
[ "text", " " ],
[ "identifier", "j" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "constant.numeric", "10" ],
[ "text", ";" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "meta.tag", "</jsp:declaration>" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "comment", "<%-- This is JSP comment --%>" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "meta.tag", "<%@" ],
[ "text", " " ],
[ "identifier", "directive" ],
[ "text", " " ],
[ "identifier", "attribute" ],
[ "keyword.operator", "=" ],
[ "string", "\"value\"" ],
[ "text", " " ],
[ "meta.tag", "%>" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "meta.tag", "<" ],
[ "meta.tag.tag-name", "h2" ],
[ "meta.tag.r", ">" ],
[ "text", "Select Languages:" ],
[ "meta.tag", "</" ],
[ "meta.tag.tag-name", "h2" ],
[ "meta.tag.r", ">" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "meta.tag", "<" ],
[ "meta.tag.tag-name.form", "form" ],
[ "text", " " ],
[ "entity.other.attribute-name", "ACTION" ],
[ "keyword.operator", "=" ],
[ "string", "\"jspCheckBox.jsp\"" ],
[ "meta.tag.r", ">" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "meta.tag", "<" ],
[ "meta.tag.tag-name.form", "input" ],
[ "text", " " ],
[ "entity.other.attribute-name", "type" ],
[ "keyword.operator", "=" ],
[ "string", "\"checkbox\"" ],
[ "text", " " ],
[ "entity.other.attribute-name", "name" ],
[ "keyword.operator", "=" ],
[ "string", "\"id\"" ],
[ "text", " " ],
[ "entity.other.attribute-name", "value" ],
[ "keyword.operator", "=" ],
[ "string", "\"Java\"" ],
[ "meta.tag.r", ">" ],
[ "text", " Java" ],
[ "meta.tag", "<" ],
[ "meta.tag.tag-name", "BR" ],
[ "meta.tag.r", ">" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "meta.tag", "<" ],
[ "meta.tag.tag-name.form", "input" ],
[ "text", " " ],
[ "entity.other.attribute-name", "type" ],
[ "keyword.operator", "=" ],
[ "string", "\"checkbox\"" ],
[ "text", " " ],
[ "entity.other.attribute-name", "name" ],
[ "keyword.operator", "=" ],
[ "string", "\"id\"" ],
[ "text", " " ],
[ "entity.other.attribute-name", "value" ],
[ "keyword.operator", "=" ],
[ "string", "\".NET\"" ],
[ "meta.tag.r", ">" ],
[ "text", " .NET" ],
[ "meta.tag", "<" ],
[ "meta.tag.tag-name", "BR" ],
[ "meta.tag.r", ">" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "meta.tag", "<" ],
[ "meta.tag.tag-name.form", "input" ],
[ "text", " " ],
[ "entity.other.attribute-name", "type" ],
[ "keyword.operator", "=" ],
[ "string", "\"checkbox\"" ],
[ "text", " " ],
[ "entity.other.attribute-name", "name" ],
[ "keyword.operator", "=" ],
[ "string", "\"id\"" ],
[ "text", " " ],
[ "entity.other.attribute-name", "value" ],
[ "keyword.operator", "=" ],
[ "string", "\"PHP\"" ],
[ "meta.tag.r", ">" ],
[ "text", " PHP" ],
[ "meta.tag", "<" ],
[ "meta.tag.tag-name", "BR" ],
[ "meta.tag.r", ">" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "meta.tag", "<" ],
[ "meta.tag.tag-name.form", "input" ],
[ "text", " " ],
[ "entity.other.attribute-name", "type" ],
[ "keyword.operator", "=" ],
[ "string", "\"checkbox\"" ],
[ "text", " " ],
[ "entity.other.attribute-name", "name" ],
[ "keyword.operator", "=" ],
[ "string", "\"id\"" ],
[ "text", " " ],
[ "entity.other.attribute-name", "value" ],
[ "keyword.operator", "=" ],
[ "string", "\"C/C++\"" ],
[ "meta.tag.r", ">" ],
[ "text", " C/C++" ],
[ "meta.tag", "<" ],
[ "meta.tag.tag-name", "BR" ],
[ "meta.tag.r", ">" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "meta.tag", "<" ],
[ "meta.tag.tag-name.form", "input" ],
[ "text", " " ],
[ "entity.other.attribute-name", "type" ],
[ "keyword.operator", "=" ],
[ "string", "\"checkbox\"" ],
[ "text", " " ],
[ "entity.other.attribute-name", "name" ],
[ "keyword.operator", "=" ],
[ "string", "\"id\"" ],
[ "text", " " ],
[ "entity.other.attribute-name", "value" ],
[ "keyword.operator", "=" ],
[ "string", "\"PERL\"" ],
[ "meta.tag.r", ">" ],
[ "text", " PERL " ],
[ "meta.tag", "<" ],
[ "meta.tag.tag-name", "BR" ],
[ "meta.tag.r", ">" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "meta.tag", "<" ],
[ "meta.tag.tag-name.form", "input" ],
[ "text", " " ],
[ "entity.other.attribute-name", "type" ],
[ "keyword.operator", "=" ],
[ "string", "\"submit\"" ],
[ "text", " " ],
[ "entity.other.attribute-name", "value" ],
[ "keyword.operator", "=" ],
[ "string", "\"Submit\"" ],
[ "meta.tag.r", ">" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "meta.tag", "</" ],
[ "meta.tag.tag-name.form", "form" ],
[ "meta.tag.r", ">" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "jsp-start",
"data": [
[ "text", " " ],
[ "meta.tag", "<%" ]
]
},
{
"state": "jsp-start",
"data": [
[ "text", " " ],
[ "support.function", "String" ],
[ "text", " " ],
[ "identifier", "select" ],
[ "lparen", "[" ],
[ "rparen", "]" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "variable.language", "request" ],
[ "text", "." ],
[ "identifier", "getParameterValues" ],
[ "lparen", "(" ],
[ "string", "\"id\"" ],
[ "rparen", ")" ],
[ "text", "; " ]
]
},
{
"state": "jsp-start",
"data": [
[ "text", " " ],
[ "keyword", "if" ],
[ "text", " " ],
[ "lparen", "(" ],
[ "identifier", "select" ],
[ "text", " " ],
[ "keyword.operator", "!=" ],
[ "text", " " ],
[ "constant.language", "null" ],
[ "text", " " ],
[ "keyword.operator", "&&" ],
[ "text", " " ],
[ "identifier", "select" ],
[ "text", "." ],
[ "identifier", "length" ],
[ "text", " " ],
[ "keyword.operator", "!=" ],
[ "text", " " ],
[ "constant.numeric", "0" ],
[ "rparen", ")" ],
[ "text", " " ],
[ "lparen", "{" ]
]
},
{
"state": "jsp-start",
"data": [
[ "text", " " ],
[ "variable.language", "out" ],
[ "text", "." ],
[ "identifier", "println" ],
[ "lparen", "(" ],
[ "string", "\"You have selected: \"" ],
[ "rparen", ")" ],
[ "text", ";" ]
]
},
{
"state": "jsp-start",
"data": [
[ "text", " " ],
[ "keyword", "for" ],
[ "text", " " ],
[ "lparen", "(" ],
[ "keyword", "int" ],
[ "text", " " ],
[ "identifier", "i" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "constant.numeric", "0" ],
[ "text", "; " ],
[ "identifier", "i" ],
[ "text", " " ],
[ "keyword.operator", "<" ],
[ "text", " " ],
[ "identifier", "select" ],
[ "text", "." ],
[ "identifier", "length" ],
[ "text", "; " ],
[ "identifier", "i" ],
[ "keyword.operator", "++" ],
[ "rparen", ")" ],
[ "text", " " ],
[ "lparen", "{" ]
]
},
{
"state": "jsp-start",
"data": [
[ "text", " " ],
[ "variable.language", "out" ],
[ "text", "." ],
[ "identifier", "println" ],
[ "lparen", "(" ],
[ "identifier", "select" ],
[ "lparen", "[" ],
[ "identifier", "i" ],
[ "rparen", "])" ],
[ "text", "; " ]
]
},
{
"state": "jsp-start",
"data": [
[ "text", " " ],
[ "rparen", "}" ]
]
},
{
"state": "jsp-start",
"data": [
[ "text", " " ],
[ "rparen", "}" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "meta.tag", "%>" ]
]
},
{
"state": "start",
"data": [
[ "meta.tag", "</" ],
[ "meta.tag.tag-name", "body" ],
[ "meta.tag.r", ">" ]
]
},
{
"state": "start",
"data": [
[ "meta.tag", "</" ],
[ "meta.tag.tag-name", "html" ],
[ "meta.tag.r", ">" ]
]
}
]

View file

@ -169,9 +169,7 @@
[ "rparen", "}" ], [ "rparen", "}" ],
[ "lparen", "{" ], [ "lparen", "{" ],
[ "text", "c^2" ], [ "text", "c^2" ],
[ "rparen", "}" ], [ "rparen", "}}}" ]
[ "rparen", "}" ],
[ "rparen", "}" ]
] ]
}, },
{ {

View file

@ -2,8 +2,7 @@
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "comment", "/*" ], [ "comment", "/* styles.less */" ]
[ "comment", " styles.less */" ]
] ]
}, },
{ {
@ -39,8 +38,7 @@
[ "support.function", "iscolor" ], [ "support.function", "iscolor" ],
[ "paren.lparen", "(" ], [ "paren.lparen", "(" ],
[ "variable", "@c" ], [ "variable", "@c" ],
[ "paren.rparen", ")" ], [ "paren.rparen", "))" ],
[ "paren.rparen", ")" ],
[ "text", " " ], [ "text", " " ],
[ "paren.lparen", "{" ] [ "paren.lparen", "{" ]
] ]
@ -99,8 +97,7 @@
[ "support.function", "isnumber" ], [ "support.function", "isnumber" ],
[ "paren.lparen", "(" ], [ "paren.lparen", "(" ],
[ "variable", "@alpha" ], [ "variable", "@alpha" ],
[ "paren.rparen", ")" ], [ "paren.rparen", "))" ],
[ "paren.rparen", ")" ],
[ "text", " " ], [ "text", " " ],
[ "paren.lparen", "{" ] [ "paren.lparen", "{" ]
] ]
@ -122,8 +119,7 @@
[ "constant.numeric", "0" ], [ "constant.numeric", "0" ],
[ "text", ", " ], [ "text", ", " ],
[ "variable", "@alpha" ], [ "variable", "@alpha" ],
[ "paren.rparen", ")" ], [ "paren.rparen", "))" ],
[ "paren.rparen", ")" ],
[ "text", ";" ] [ "text", ";" ]
] ]
}, },

View file

@ -89,7 +89,7 @@
[ "entity.other.attribute-name", "id" ], [ "entity.other.attribute-name", "id" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"products\"" ], [ "string", "\"products\"" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -115,7 +115,7 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "li" ], [ "meta.tag.tag-name", "li" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -124,7 +124,7 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "h2" ], [ "meta.tag.tag-name", "h2" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "variable", "{{" ], [ "variable", "{{" ],
[ "text", " " ], [ "text", " " ],
[ "identifier", "product" ], [ "identifier", "product" ],
@ -134,7 +134,7 @@
[ "variable", "}}" ], [ "variable", "}}" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "h2" ], [ "meta.tag.tag-name", "h2" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -153,7 +153,7 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "p" ], [ "meta.tag.tag-name", "p" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "variable", "{{" ], [ "variable", "{{" ],
[ "text", " " ], [ "text", " " ],
[ "identifier", "product" ], [ "identifier", "product" ],
@ -169,7 +169,7 @@
[ "variable", "}}" ], [ "variable", "}}" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "p" ], [ "meta.tag.tag-name", "p" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -182,7 +182,7 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "li" ], [ "meta.tag.tag-name", "li" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -202,7 +202,7 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "ul" ], [ "meta.tag.tag-name", "ul" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -228,11 +228,11 @@
"data": [ "data": [
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "h2" ], [ "meta.tag.tag-name", "h2" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "Filters" ], [ "text", "Filters" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "h2" ], [ "meta.tag.tag-name", "h2" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -240,11 +240,11 @@
"data": [ "data": [
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "p" ], [ "meta.tag.tag-name", "p" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", " The word \"tobi\" in uppercase: {{ 'tobi' | upcase }} " ], [ "text", " The word \"tobi\" in uppercase: {{ 'tobi' | upcase }} " ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "p" ], [ "meta.tag.tag-name", "p" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -252,11 +252,11 @@
"data": [ "data": [
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "p" ], [ "meta.tag.tag-name", "p" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "The word \"tobi\" has {{ 'tobi' | size }} letters! " ], [ "text", "The word \"tobi\" has {{ 'tobi' | size }} letters! " ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "p" ], [ "meta.tag.tag-name", "p" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -264,11 +264,11 @@
"data": [ "data": [
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "p" ], [ "meta.tag.tag-name", "p" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "Change \"Hello world\" to \"Hi world\": {{ 'Hello world' | replace: 'Hello', 'Hi' }} " ], [ "text", "Change \"Hello world\" to \"Hi world\": {{ 'Hello world' | replace: 'Hello', 'Hi' }} " ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "p" ], [ "meta.tag.tag-name", "p" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -276,11 +276,11 @@
"data": [ "data": [
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "p" ], [ "meta.tag.tag-name", "p" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "The date today is {{ 'now' | date: \"%Y %b %d\" }} " ], [ "text", "The date today is {{ 'now' | date: \"%Y %b %d\" }} " ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "p" ], [ "meta.tag.tag-name", "p" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -296,11 +296,11 @@
"data": [ "data": [
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "h2" ], [ "meta.tag.tag-name", "h2" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "If" ], [ "text", "If" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "h2" ], [ "meta.tag.tag-name", "h2" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -308,7 +308,7 @@
"data": [ "data": [
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "p" ], [ "meta.tag.tag-name", "p" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -323,8 +323,7 @@
[ "text", "." ], [ "text", "." ],
[ "identifier", "name" ], [ "identifier", "name" ],
[ "text", " " ], [ "text", " " ],
[ "keyword.operator", "=" ], [ "keyword.operator", "==" ],
[ "keyword.operator", "=" ],
[ "text", " " ], [ "text", " " ],
[ "string", "'tobi'" ], [ "string", "'tobi'" ],
[ "text", " " ], [ "text", " " ],
@ -334,8 +333,7 @@
[ "text", "." ], [ "text", "." ],
[ "identifier", "name" ], [ "identifier", "name" ],
[ "text", " " ], [ "text", " " ],
[ "keyword.operator", "=" ], [ "keyword.operator", "==" ],
[ "keyword.operator", "=" ],
[ "text", " " ], [ "text", " " ],
[ "string", "'marc'" ], [ "string", "'marc'" ],
[ "text", " " ], [ "text", " " ],
@ -365,7 +363,7 @@
"data": [ "data": [
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "p" ], [ "meta.tag.tag-name", "p" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -381,11 +379,11 @@
"data": [ "data": [
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "h2" ], [ "meta.tag.tag-name", "h2" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "Case" ], [ "text", "Case" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "h2" ], [ "meta.tag.tag-name", "h2" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -393,7 +391,7 @@
"data": [ "data": [
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "p" ], [ "meta.tag.tag-name", "p" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -495,7 +493,7 @@
"data": [ "data": [
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "p" ], [ "meta.tag.tag-name", "p" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -511,11 +509,11 @@
"data": [ "data": [
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "h2" ], [ "meta.tag.tag-name", "h2" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "For Loops" ], [ "text", "For Loops" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "h2" ], [ "meta.tag.tag-name", "h2" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -523,7 +521,7 @@
"data": [ "data": [
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "p" ], [ "meta.tag.tag-name", "p" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -571,7 +569,7 @@
"data": [ "data": [
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "p" ], [ "meta.tag.tag-name", "p" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -587,11 +585,11 @@
"data": [ "data": [
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "h2" ], [ "meta.tag.tag-name", "h2" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "Tables" ], [ "text", "Tables" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "h2" ], [ "meta.tag.tag-name", "h2" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -599,7 +597,7 @@
"data": [ "data": [
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "p" ], [ "meta.tag.tag-name", "p" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -688,7 +686,7 @@
"data": [ "data": [
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "p" ], [ "meta.tag.tag-name", "p" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {

View file

@ -0,0 +1,314 @@
[
{
"state": "start",
"data": [
[ "text", "(" ],
[ "storage.type.function-type.lisp", "defun" ],
[ "text", " " ],
[ "entity.name.function.lisp", "prompt-for-cd" ],
[ "text", " ()" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "string", "\"Prompts" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "identifier", "for" ],
[ "text", " " ],
[ "identifier", "CD" ],
[ "text", "\"" ]
]
},
{
"state": "start",
"data": [
[ "text", " (" ],
[ "identifier", "prompt" ],
[ "text", "-" ],
[ "identifier", "read" ],
[ "text", " " ],
[ "string", "\"Title\"" ],
[ "text", " " ],
[ "constant.numeric", "1.53" ],
[ "text", " " ],
[ "constant.numeric", "1" ],
[ "text", " " ],
[ "constant.numeric", "2" ],
[ "text", "/" ],
[ "constant.numeric", "4" ],
[ "text", " " ],
[ "constant.numeric", "1.7" ],
[ "text", " " ],
[ "constant.numeric", "1.7e0" ],
[ "text", " " ],
[ "constant.numeric", "2.9E-4" ],
[ "text", " " ],
[ "constant.numeric", "+42" ],
[ "text", " " ],
[ "constant.numeric", "-7" ],
[ "text", " " ],
[ "punctuation.definition.constant.character.lisp", "#" ],
[ "constant.character.lisp", "b001" ],
[ "text", " " ],
[ "punctuation.definition.constant.character.lisp", "#" ],
[ "constant.character.lisp", "b001/100" ],
[ "text", " " ],
[ "punctuation.definition.constant.character.lisp", "#" ],
[ "constant.character.lisp", "o777" ],
[ "text", " " ],
[ "punctuation.definition.constant.character.lisp", "#" ],
[ "constant.character.lisp", "O777" ],
[ "text", " " ],
[ "punctuation.definition.constant.character.lisp", "#" ],
[ "constant.character.lisp", "xabc55" ],
[ "text", " " ],
[ "punctuation.definition.constant.character.lisp", "#" ],
[ "constant.character.lisp", "c" ],
[ "text", "(" ],
[ "constant.numeric", "0" ],
[ "text", " " ],
[ "constant.numeric", "-5.6" ],
[ "text", "))" ]
]
},
{
"state": "start",
"data": [
[ "text", " (" ],
[ "identifier", "prompt" ],
[ "text", "-" ],
[ "identifier", "read" ],
[ "text", " " ],
[ "string", "\"Artist\"" ],
[ "text", " &" ],
[ "identifier", "rest" ],
[ "text", ")" ]
]
},
{
"state": "start",
"data": [
[ "text", " (" ],
[ "keyword.operator", "or" ],
[ "text", " (" ],
[ "identifier", "parse" ],
[ "text", "-" ],
[ "identifier", "integer" ],
[ "text", " (" ],
[ "identifier", "prompt" ],
[ "text", "-" ],
[ "identifier", "read" ],
[ "text", " " ],
[ "string", "\"Rating\"" ],
[ "text", ") :" ],
[ "identifier", "junk" ],
[ "text", "-" ],
[ "identifier", "allowed" ],
[ "text", " " ],
[ "support.function", "t" ],
[ "text", ") " ],
[ "constant.numeric", "0" ],
[ "text", ")" ]
]
},
{
"state": "start",
"data": [
[ "text", " (" ],
[ "keyword.control", "if" ],
[ "text", " " ],
[ "identifier", "x" ],
[ "text", " (" ],
[ "support.function", "format" ],
[ "text", " " ],
[ "support.function", "t" ],
[ "text", " " ],
[ "string", "\"yes\"" ],
[ "text", ") (" ],
[ "support.function", "format" ],
[ "text", " " ],
[ "support.function", "t" ],
[ "text", " " ],
[ "string", "\"no\"" ],
[ "text", " " ],
[ "constant.language", "nil" ],
[ "text", ") " ],
[ "comment", ";and here comment" ]
]
},
{
"state": "start",
"data": [
[ "text", " ) " ],
[ "constant.numeric", "0xFFLL" ],
[ "text", " " ],
[ "constant.numeric", "-23ull" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "comment", ";; second line comment" ]
]
},
{
"state": "start",
"data": [
[ "text", " '(+ " ],
[ "constant.numeric", "1" ],
[ "text", " " ],
[ "constant.numeric", "2" ],
[ "text", ")" ]
]
},
{
"state": "start",
"data": [
[ "text", " (" ],
[ "identifier", "defvar" ],
[ "text", " " ],
[ "punctuation.definition.variable.lisp", "*" ],
[ "variable.other.global.lisp", "lines" ],
[ "punctuation.definition.variable.lisp", "*" ],
[ "text", ") " ],
[ "comment", "; list of all lines" ]
]
},
{
"state": "start",
"data": [
[ "text", " (" ],
[ "identifier", "position" ],
[ "text", "-" ],
[ "keyword.control", "if" ],
[ "text", "-" ],
[ "identifier", "not" ],
[ "text", " " ],
[ "punctuation.definition.constant.character.lisp", "#" ],
[ "constant.character.lisp", "'sys::whitespacep" ],
[ "text", " " ],
[ "identifier", "line" ],
[ "text", " :" ],
[ "identifier", "start" ],
[ "text", " " ],
[ "identifier", "beg" ],
[ "text", "))" ]
]
},
{
"state": "start",
"data": [
[ "text", " (" ],
[ "support.function", "quote" ],
[ "text", " (" ],
[ "identifier", "privet" ],
[ "text", " " ],
[ "constant.numeric", "1" ],
[ "text", " " ],
[ "constant.numeric", "2" ],
[ "text", " " ],
[ "constant.numeric", "3" ],
[ "text", "))" ]
]
},
{
"state": "start",
"data": [
[ "text", " '(" ],
[ "identifier", "hello" ],
[ "text", " " ],
[ "identifier", "world" ],
[ "text", ")" ]
]
},
{
"state": "start",
"data": [
[ "text", " (* " ],
[ "constant.numeric", "5" ],
[ "text", " " ],
[ "constant.numeric", "7" ],
[ "text", ")" ]
]
},
{
"state": "start",
"data": [
[ "text", " (" ],
[ "constant.numeric", "1" ],
[ "text", " " ],
[ "constant.numeric", "2" ],
[ "text", " " ],
[ "constant.numeric", "34" ],
[ "text", " " ],
[ "constant.numeric", "5" ],
[ "text", ")" ]
]
},
{
"state": "start",
"data": [
[ "text", " (:" ],
[ "identifier", "use" ],
[ "text", " " ],
[ "string", "\"aaaa\"" ],
[ "text", ")" ]
]
},
{
"state": "start",
"data": [
[ "text", " (" ],
[ "keyword.control", "let" ],
[ "text", " ((" ],
[ "identifier", "x" ],
[ "text", " " ],
[ "constant.numeric", "10" ],
[ "text", ") (" ],
[ "identifier", "y" ],
[ "text", " " ],
[ "constant.numeric", "20" ],
[ "text", "))" ]
]
},
{
"state": "start",
"data": [
[ "text", " (" ],
[ "identifier", "print" ],
[ "text", " (+ " ],
[ "identifier", "x" ],
[ "text", " " ],
[ "identifier", "y" ],
[ "text", "))" ]
]
},
{
"state": "start",
"data": [
[ "text", " ) " ],
[ "support.function", "LAmbDa" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "string", "\"asdad" ],
[ "constant.character.escape.lisp", "\\0" ],
[ "string", "eqweqe\"" ]
]
}
]

View file

@ -20,8 +20,7 @@
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "comment", "--]]" ], [ "comment", "--]]--" ]
[ "comment", "--" ]
] ]
}, },
{ {
@ -138,8 +137,7 @@
[ "support.function", "sub" ], [ "support.function", "sub" ],
[ "paren.lparen", "(" ], [ "paren.lparen", "(" ],
[ "constant.numeric", "13" ], [ "constant.numeric", "13" ],
[ "paren.rparen", ")" ], [ "paren.rparen", "))" ],
[ "paren.rparen", ")" ],
[ "text", ", " ], [ "text", ", " ],
[ "identifier", "offset" ], [ "identifier", "offset" ],
[ "text", " " ], [ "text", " " ],
@ -283,8 +281,7 @@
[ "identifier", "other" ], [ "identifier", "other" ],
[ "paren.rparen", ")" ], [ "paren.rparen", ")" ],
[ "text", " " ], [ "text", " " ],
[ "keyword.operator", "~" ], [ "keyword.operator", "~=" ],
[ "keyword.operator", "=" ],
[ "text", " " ], [ "text", " " ],
[ "string", "\"table\"" ], [ "string", "\"table\"" ],
[ "text", " " ], [ "text", " " ],
@ -348,8 +345,7 @@
[ "support.function", "unpack" ], [ "support.function", "unpack" ],
[ "paren.lparen", "(" ], [ "paren.lparen", "(" ],
[ "identifier", "other" ], [ "identifier", "other" ],
[ "paren.rparen", ")" ], [ "paren.rparen", "))" ]
[ "paren.rparen", ")" ]
] ]
}, },
{ {
@ -387,9 +383,7 @@
[ "identifier", "num_args" ], [ "identifier", "num_args" ],
[ "paren.lparen", "(" ], [ "paren.lparen", "(" ],
[ "identifier", "int" ], [ "identifier", "int" ],
[ "paren.rparen", ")" ], [ "paren.rparen", ")})" ]
[ "paren.rparen", "}" ],
[ "paren.rparen", ")" ]
] ]
}, },
{ {
@ -411,8 +405,7 @@
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "comment", "--]=]" ], [ "comment", "--]=]--" ]
[ "comment", "--" ]
] ]
}, },
{ {

View file

@ -19,7 +19,7 @@
"data": [ "data": [
[ "text", " " ], [ "text", " " ],
[ "string", "\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\"" ], [ "string", "\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\"" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -27,7 +27,7 @@
"data": [ "data": [
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "html" ], [ "meta.tag.tag-name", "html" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -63,7 +63,7 @@
"data": [ "data": [
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "head" ], [ "meta.tag.tag-name", "head" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -72,11 +72,11 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "title" ], [ "meta.tag.tag-name", "title" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "Reference" ], [ "text", "Reference" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "title" ], [ "meta.tag.tag-name", "title" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -92,25 +92,27 @@
[ "text", " " ], [ "text", " " ],
[ "entity.other.attribute-name", "href" ], [ "entity.other.attribute-name", "href" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"<%=luadoc.doclet.html.link(\"" ], [ "string", "\"" ],
[ "entity.other.attribute-name", "luadoc" ], [ "keyword", "<%=" ],
[ "identifier", "luadoc" ],
[ "text", "." ], [ "text", "." ],
[ "entity.other.attribute-name", "css" ], [ "identifier", "doclet" ],
[ "string", "\")%>\"" ], [ "text", "." ],
[ "text", " " ], [ "identifier", "html" ],
[ "entity.other.attribute-name", "type" ], [ "text", "." ],
[ "keyword.operator", "=" ], [ "identifier", "link" ],
[ "string", "\"text/css\"" ], [ "paren.lparen", "(" ],
[ "text", " " ], [ "string", "\"luadoc.css\"" ],
[ "meta.tag", "/>" ] [ "paren.rparen", ")" ],
[ "keyword", "%>" ],
[ "text", "\" type=\"text/css\" />" ]
] ]
}, },
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "text", "\t" ], [ "text", "\t" ],
[ "comment", "<!--" ], [ "comment", "<!--meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/-->" ]
[ "comment", "meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/-->" ]
] ]
}, },
{ {
@ -118,7 +120,7 @@
"data": [ "data": [
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "head" ], [ "meta.tag.tag-name", "head" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -130,7 +132,7 @@
"data": [ "data": [
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "body" ], [ "meta.tag.tag-name", "body" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -142,7 +144,7 @@
[ "entity.other.attribute-name", "id" ], [ "entity.other.attribute-name", "id" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"container\"" ], [ "string", "\"container\"" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -158,7 +160,7 @@
[ "entity.other.attribute-name", "id" ], [ "entity.other.attribute-name", "id" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"product\"" ], [ "string", "\"product\"" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -171,10 +173,10 @@
[ "entity.other.attribute-name", "id" ], [ "entity.other.attribute-name", "id" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"product_logo\"" ], [ "string", "\"product_logo\"" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "div" ], [ "meta.tag.tag-name", "div" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -187,22 +189,22 @@
[ "entity.other.attribute-name", "id" ], [ "entity.other.attribute-name", "id" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"product_name\"" ], [ "string", "\"product_name\"" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "big" ], [ "meta.tag.tag-name", "big" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "b" ], [ "meta.tag.tag-name", "b" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "b" ], [ "meta.tag.tag-name", "b" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "big" ], [ "meta.tag.tag-name", "big" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "div" ], [ "meta.tag.tag-name", "div" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -215,10 +217,10 @@
[ "entity.other.attribute-name", "id" ], [ "entity.other.attribute-name", "id" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"product_description\"" ], [ "string", "\"product_description\"" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "div" ], [ "meta.tag.tag-name", "div" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -226,10 +228,9 @@
"data": [ "data": [
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "div" ], [ "meta.tag.tag-name", "div" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", " " ], [ "text", " " ],
[ "comment", "<!--" ], [ "comment", "<!-- id=\"product\" -->" ]
[ "comment", " id=\"product\" -->" ]
] ]
}, },
{ {
@ -245,7 +246,7 @@
[ "entity.other.attribute-name", "id" ], [ "entity.other.attribute-name", "id" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"main\"" ], [ "string", "\"main\"" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -261,7 +262,7 @@
[ "entity.other.attribute-name", "id" ], [ "entity.other.attribute-name", "id" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"navigation\"" ], [ "string", "\"navigation\"" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -284,8 +285,7 @@
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "identifier", "doc" ], [ "identifier", "doc" ],
[ "text", " " ], [ "text", " " ],
[ "paren.rparen", "}" ], [ "paren.rparen", "})" ],
[ "paren.rparen", ")" ],
[ "keyword", "%>" ] [ "keyword", "%>" ]
] ]
}, },
@ -298,10 +298,9 @@
"data": [ "data": [
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "div" ], [ "meta.tag.tag-name", "div" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", " " ], [ "text", " " ],
[ "comment", "<!--" ], [ "comment", "<!-- id=\"navigation\" -->" ]
[ "comment", " id=\"navigation\" -->" ]
] ]
}, },
{ {
@ -317,7 +316,7 @@
[ "entity.other.attribute-name", "id" ], [ "entity.other.attribute-name", "id" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"content\"" ], [ "string", "\"content\"" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -331,8 +330,7 @@
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "keyword", "<%" ], [ "keyword", "<%if" ],
[ "keyword", "if" ],
[ "text", " " ], [ "text", " " ],
[ "keyword", "not" ], [ "keyword", "not" ],
[ "text", " " ], [ "text", " " ],
@ -351,8 +349,7 @@
[ "text", " " ], [ "text", " " ],
[ "constant.numeric", "0" ], [ "constant.numeric", "0" ],
[ "text", " " ], [ "text", " " ],
[ "keyword", "then" ], [ "keyword", "then%>" ]
[ "keyword", "%>" ]
] ]
}, },
{ {
@ -360,11 +357,11 @@
"data": [ "data": [
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "h2" ], [ "meta.tag.tag-name", "h2" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "Modules" ], [ "text", "Modules" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "h2" ], [ "meta.tag.tag-name", "h2" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -376,21 +373,19 @@
[ "entity.other.attribute-name", "class" ], [ "entity.other.attribute-name", "class" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"module_list\"" ], [ "string", "\"module_list\"" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "comment", "<!--" ], [ "comment", "<!--<tr><td colspan=\"2\">Modules</td></tr>-->" ]
[ "comment", "<tr><td colspan=\"2\">Modules</td></tr>-->" ]
] ]
}, },
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "keyword", "<%" ], [ "keyword", "<%for" ],
[ "keyword", "for" ],
[ "text", " " ], [ "text", " " ],
[ "identifier", "_" ], [ "identifier", "_" ],
[ "text", ", " ], [ "text", ", " ],
@ -405,8 +400,7 @@
[ "identifier", "modules" ], [ "identifier", "modules" ],
[ "paren.rparen", ")" ], [ "paren.rparen", ")" ],
[ "text", " " ], [ "text", " " ],
[ "keyword", "do" ], [ "keyword", "do%>" ]
[ "keyword", "%>" ]
] ]
}, },
{ {
@ -415,7 +409,7 @@
[ "text", "\t" ], [ "text", "\t" ],
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name.table", "tr" ], [ "meta.tag.tag-name.table", "tr" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -428,23 +422,37 @@
[ "entity.other.attribute-name", "class" ], [ "entity.other.attribute-name", "class" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"name\"" ], [ "string", "\"name\"" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name.anchor", "a" ], [ "meta.tag.tag-name.anchor", "a" ],
[ "text", " " ], [ "text", " " ],
[ "entity.other.attribute-name", "href" ], [ "entity.other.attribute-name", "href" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"<%=luadoc.doclet.html.module_link(modulename, doc)%>\"" ], [ "string", "\"" ],
[ "meta.tag", ">" ], [ "keyword", "<%=" ],
[ "identifier", "luadoc" ],
[ "text", "." ],
[ "identifier", "doclet" ],
[ "text", "." ],
[ "identifier", "html" ],
[ "text", "." ],
[ "identifier", "module_link" ],
[ "paren.lparen", "(" ],
[ "identifier", "modulename" ],
[ "text", ", " ],
[ "identifier", "doc" ],
[ "paren.rparen", ")" ],
[ "keyword", "%>" ],
[ "text", "\">" ],
[ "keyword", "<%=" ], [ "keyword", "<%=" ],
[ "identifier", "modulename" ], [ "identifier", "modulename" ],
[ "keyword", "%>" ], [ "keyword", "%>" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name.anchor", "a" ], [ "meta.tag.tag-name.anchor", "a" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name.table", "td" ], [ "meta.tag.tag-name.table", "td" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -457,7 +465,7 @@
[ "entity.other.attribute-name", "class" ], [ "entity.other.attribute-name", "class" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"summary\"" ], [ "string", "\"summary\"" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "keyword", "<%=" ], [ "keyword", "<%=" ],
[ "identifier", "doc" ], [ "identifier", "doc" ],
[ "text", "." ], [ "text", "." ],
@ -470,7 +478,7 @@
[ "keyword", "%>" ], [ "keyword", "%>" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name.table", "td" ], [ "meta.tag.tag-name.table", "td" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -479,15 +487,13 @@
[ "text", "\t" ], [ "text", "\t" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name.table", "tr" ], [ "meta.tag.tag-name.table", "tr" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "keyword", "<%" ], [ "keyword", "<%end%>" ]
[ "keyword", "end" ],
[ "keyword", "%>" ]
] ]
}, },
{ {
@ -495,15 +501,13 @@
"data": [ "data": [
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name.table", "table" ], [ "meta.tag.tag-name.table", "table" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "keyword", "<%" ], [ "keyword", "<%end%>" ]
[ "keyword", "end" ],
[ "keyword", "%>" ]
] ]
}, },
{ {
@ -521,8 +525,7 @@
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "keyword", "<%" ], [ "keyword", "<%if" ],
[ "keyword", "if" ],
[ "text", " " ], [ "text", " " ],
[ "keyword", "not" ], [ "keyword", "not" ],
[ "text", " " ], [ "text", " " ],
@ -541,8 +544,7 @@
[ "text", " " ], [ "text", " " ],
[ "constant.numeric", "0" ], [ "constant.numeric", "0" ],
[ "text", " " ], [ "text", " " ],
[ "keyword", "then" ], [ "keyword", "then%>" ]
[ "keyword", "%>" ]
] ]
}, },
{ {
@ -550,11 +552,11 @@
"data": [ "data": [
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "h2" ], [ "meta.tag.tag-name", "h2" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "Files" ], [ "text", "Files" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "h2" ], [ "meta.tag.tag-name", "h2" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -566,21 +568,19 @@
[ "entity.other.attribute-name", "class" ], [ "entity.other.attribute-name", "class" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"file_list\"" ], [ "string", "\"file_list\"" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "comment", "<!--" ], [ "comment", "<!--<tr><td colspan=\"2\">Files</td></tr>-->" ]
[ "comment", "<tr><td colspan=\"2\">Files</td></tr>-->" ]
] ]
}, },
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "keyword", "<%" ], [ "keyword", "<%for" ],
[ "keyword", "for" ],
[ "text", " " ], [ "text", " " ],
[ "identifier", "_" ], [ "identifier", "_" ],
[ "text", ", " ], [ "text", ", " ],
@ -595,8 +595,7 @@
[ "identifier", "files" ], [ "identifier", "files" ],
[ "paren.rparen", ")" ], [ "paren.rparen", ")" ],
[ "text", " " ], [ "text", " " ],
[ "keyword", "do" ], [ "keyword", "do%>" ]
[ "keyword", "%>" ]
] ]
}, },
{ {
@ -605,7 +604,7 @@
[ "text", "\t" ], [ "text", "\t" ],
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name.table", "tr" ], [ "meta.tag.tag-name.table", "tr" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -618,23 +617,35 @@
[ "entity.other.attribute-name", "class" ], [ "entity.other.attribute-name", "class" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"name\"" ], [ "string", "\"name\"" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name.anchor", "a" ], [ "meta.tag.tag-name.anchor", "a" ],
[ "text", " " ], [ "text", " " ],
[ "entity.other.attribute-name", "href" ], [ "entity.other.attribute-name", "href" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"<%=luadoc.doclet.html.file_link(filepath)%>\"" ], [ "string", "\"" ],
[ "meta.tag", ">" ], [ "keyword", "<%=" ],
[ "identifier", "luadoc" ],
[ "text", "." ],
[ "identifier", "doclet" ],
[ "text", "." ],
[ "identifier", "html" ],
[ "text", "." ],
[ "identifier", "file_link" ],
[ "paren.lparen", "(" ],
[ "identifier", "filepath" ],
[ "paren.rparen", ")" ],
[ "keyword", "%>" ],
[ "text", "\">" ],
[ "keyword", "<%=" ], [ "keyword", "<%=" ],
[ "identifier", "filepath" ], [ "identifier", "filepath" ],
[ "keyword", "%>" ], [ "keyword", "%>" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name.anchor", "a" ], [ "meta.tag.tag-name.anchor", "a" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name.table", "td" ], [ "meta.tag.tag-name.table", "td" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -647,10 +658,10 @@
[ "entity.other.attribute-name", "class" ], [ "entity.other.attribute-name", "class" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"summary\"" ], [ "string", "\"summary\"" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name.table", "td" ], [ "meta.tag.tag-name.table", "td" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -659,15 +670,13 @@
[ "text", "\t" ], [ "text", "\t" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name.table", "tr" ], [ "meta.tag.tag-name.table", "tr" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "keyword", "<%" ], [ "keyword", "<%end%>" ]
[ "keyword", "end" ],
[ "keyword", "%>" ]
] ]
}, },
{ {
@ -675,15 +684,13 @@
"data": [ "data": [
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name.table", "table" ], [ "meta.tag.tag-name.table", "table" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "keyword", "<%" ], [ "keyword", "<%end%>" ]
[ "keyword", "end" ],
[ "keyword", "%>" ]
] ]
}, },
{ {
@ -695,10 +702,9 @@
"data": [ "data": [
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "div" ], [ "meta.tag.tag-name", "div" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", " " ], [ "text", " " ],
[ "comment", "<!--" ], [ "comment", "<!-- id=\"content\" -->" ]
[ "comment", " id=\"content\" -->" ]
] ]
}, },
{ {
@ -710,10 +716,9 @@
"data": [ "data": [
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "div" ], [ "meta.tag.tag-name", "div" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", " " ], [ "text", " " ],
[ "comment", "<!--" ], [ "comment", "<!-- id=\"main\" -->" ]
[ "comment", " id=\"main\" -->" ]
] ]
}, },
{ {
@ -729,7 +734,7 @@
[ "entity.other.attribute-name", "id" ], [ "entity.other.attribute-name", "id" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"about\"" ], [ "string", "\"about\"" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -738,14 +743,14 @@
[ "text", "\t" ], [ "text", "\t" ],
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "p" ], [ "meta.tag.tag-name", "p" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name.anchor", "a" ], [ "meta.tag.tag-name.anchor", "a" ],
[ "text", " " ], [ "text", " " ],
[ "entity.other.attribute-name", "href" ], [ "entity.other.attribute-name", "href" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"http://validator.w3.org/check?uri=referer\"" ], [ "string", "\"http://validator.w3.org/check?uri=referer\"" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name.image", "img" ], [ "meta.tag.tag-name.image", "img" ],
[ "text", " " ], [ "text", " " ],
@ -765,13 +770,13 @@
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"88\"" ], [ "string", "\"88\"" ],
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "/>" ], [ "meta.tag.r", "/>" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name.anchor", "a" ], [ "meta.tag.tag-name.anchor", "a" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "p" ], [ "meta.tag.tag-name", "p" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -779,10 +784,9 @@
"data": [ "data": [
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "div" ], [ "meta.tag.tag-name", "div" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", " " ], [ "text", " " ],
[ "comment", "<!--" ], [ "comment", "<!-- id=\"about\" -->" ]
[ "comment", " id=\"about\" -->" ]
] ]
}, },
{ {
@ -794,10 +798,9 @@
"data": [ "data": [
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "div" ], [ "meta.tag.tag-name", "div" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", " " ], [ "text", " " ],
[ "comment", "<!--" ], [ "comment", "<!-- id=\"container\" -->" ],
[ "comment", " id=\"container\" -->" ],
[ "text", "\t" ] [ "text", "\t" ]
] ]
}, },
@ -806,7 +809,7 @@
"data": [ "data": [
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "body" ], [ "meta.tag.tag-name", "body" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -814,7 +817,7 @@
"data": [ "data": [
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "html" ], [ "meta.tag.tag-name", "html" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {

View file

@ -0,0 +1,21 @@
[
{
"state": "start",
"data": [
[ "paren.lparen", "(" ],
[ "keyword", "title:" ],
[ "string", "\"foo bar\"" ],
[ "text", " " ],
[ "keyword.operator", "AND" ],
[ "text", " " ],
[ "keyword", "body:" ],
[ "string", "\"quick fox\"" ],
[ "paren.rparen", ")" ],
[ "text", " " ],
[ "keyword.operator", "OR" ],
[ "text", " " ],
[ "keyword", "title:" ],
[ "text", "fox" ]
]
}
]

View file

@ -48,8 +48,7 @@
{ {
"state": "listblock", "state": "listblock",
"data": [ "data": [
[ "markup.list", "* " ], [ "markup.list", "* Syntax highlighting" ]
[ "markup.list", "Syntax highlighting" ]
] ]
}, },
{ {
@ -288,17 +287,13 @@
"state": "start", "state": "start",
"data": [ "data": [
[ "text", "Ace can be easily embedded into any existing web page. The Ace git repository ships with a pre-packaged version of Ace inside of the " ], [ "text", "Ace can be easily embedded into any existing web page. The Ace git repository ships with a pre-packaged version of Ace inside of the " ],
[ "support.function", "`" ], [ "support.function", "`build`" ],
[ "support.function", "build" ],
[ "support.function", "`" ],
[ "text", " directory. The same packaged files are also available as a separate [" ], [ "text", " directory. The same packaged files are also available as a separate [" ],
[ "string", "download" ], [ "string", "download" ],
[ "text", "](" ], [ "text", "](" ],
[ "markup.underline", "https://github.com/ajaxorg/ace/downloads" ], [ "markup.underline", "https://github.com/ajaxorg/ace/downloads" ],
[ "text", "). Simply copy the contents of the " ], [ "text", "). Simply copy the contents of the " ],
[ "support.function", "`" ], [ "support.function", "`src`" ],
[ "support.function", "src" ],
[ "support.function", "`" ],
[ "text", " subdirectory somewhere into your project and take a look at the included demos of how to use Ace." ] [ "text", " subdirectory somewhere into your project and take a look at the included demos of how to use Ace." ]
] ]
}, },
@ -332,11 +327,11 @@
[ "entity.other.attribute-name", "id" ], [ "entity.other.attribute-name", "id" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"editor\"" ], [ "string", "\"editor\"" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "some text" ], [ "text", "some text" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "div" ], [ "meta.tag.tag-name", "div" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -357,10 +352,10 @@
[ "entity.other.attribute-name", "charset" ], [ "entity.other.attribute-name", "charset" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"utf-8\"" ], [ "string", "\"utf-8\"" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name.script", "script" ], [ "meta.tag.tag-name.script", "script" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -369,7 +364,7 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name.script", "script" ], [ "meta.tag.tag-name.script", "script" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -422,7 +417,7 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name.script", "script" ], [ "meta.tag.tag-name.script", "script" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -439,13 +434,9 @@
"state": "start", "state": "start",
"data": [ "data": [
[ "text", "With \"editor\" being the id of the DOM element, which should be converted to an editor. Note that this element must be explicitly sized and positioned " ], [ "text", "With \"editor\" being the id of the DOM element, which should be converted to an editor. Note that this element must be explicitly sized and positioned " ],
[ "support.function", "`" ], [ "support.function", "`absolute`" ],
[ "support.function", "absolute" ],
[ "support.function", "`" ],
[ "text", " or " ], [ "text", " or " ],
[ "support.function", "`" ], [ "support.function", "`relative`" ],
[ "support.function", "relative" ],
[ "support.function", "`" ],
[ "text", " for Ace to work. e.g." ] [ "text", " for Ace to work. e.g." ]
] ]
}, },
@ -551,10 +542,10 @@
[ "entity.other.attribute-name", "charset" ], [ "entity.other.attribute-name", "charset" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"utf-8\"" ], [ "string", "\"utf-8\"" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name.script", "script" ], [ "meta.tag.tag-name.script", "script" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -640,10 +631,10 @@
[ "entity.other.attribute-name", "charset" ], [ "entity.other.attribute-name", "charset" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"utf-8\"" ], [ "string", "\"utf-8\"" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name.script", "script" ], [ "meta.tag.tag-name.script", "script" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -707,8 +698,7 @@
[ "text", " " ], [ "text", " " ],
[ "identifier", "JavaScriptMode" ], [ "identifier", "JavaScriptMode" ],
[ "paren.lparen", "(" ], [ "paren.lparen", "(" ],
[ "paren.rparen", ")" ], [ "paren.rparen", "))" ],
[ "paren.rparen", ")" ],
[ "punctuation.operator", ";" ] [ "punctuation.operator", ";" ]
] ]
}, },
@ -1131,8 +1121,7 @@
{ {
"state": "listblock", "state": "listblock",
"data": [ "data": [
[ "markup.list", "1. " ], [ "markup.list", "1. [The Individual CLA](https://github.com/ajaxorg/ace/raw/master/doc/Contributor_License_Agreement-v2.pdf): use this version if you're working on an ajax.org in your spare time, or can clearly claim ownership of copyright in what you'll be submitting." ]
[ "markup.list", "[The Individual CLA](https://github.com/ajaxorg/ace/raw/master/doc/Contributor_License_Agreement-v2.pdf): use this version if you're working on an ajax.org in your spare time, or can clearly claim ownership of copyright in what you'll be submitting." ]
] ]
}, },
{ {

File diff suppressed because it is too large Load diff

View file

@ -45,8 +45,7 @@
[ "text", " : " ], [ "text", " : " ],
[ "identifier", "_" ], [ "identifier", "_" ],
[ "text", " " ], [ "text", " " ],
[ "keyword.operator", "-" ], [ "keyword.operator", "->" ],
[ "keyword.operator", ">" ],
[ "text", " " ], [ "text", " " ],
[ "identifier", "t" ], [ "identifier", "t" ],
[ "paren.rparen", ")" ], [ "paren.rparen", ")" ],
@ -112,8 +111,7 @@
[ "text", " " ], [ "text", " " ],
[ "identifier", "x" ], [ "identifier", "x" ],
[ "text", " " ], [ "text", " " ],
[ "keyword.operator", "-" ], [ "keyword.operator", "->" ],
[ "keyword.operator", ">" ],
[ "text", " " ], [ "text", " " ],
[ "support.function", "raise" ], [ "support.function", "raise" ],
[ "text", " " ], [ "text", " " ],
@ -123,8 +121,7 @@
[ "identifier", "Return" ], [ "identifier", "Return" ],
[ "text", " " ], [ "text", " " ],
[ "identifier", "x" ], [ "identifier", "x" ],
[ "paren.rparen", ")" ], [ "paren.rparen", "))" ],
[ "paren.rparen", ")" ],
[ "text", "; " ], [ "text", "; " ],
[ "paren.rparen", "}" ], [ "paren.rparen", "}" ],
[ "text", " " ], [ "text", " " ],
@ -149,8 +146,7 @@
[ "text", " " ], [ "text", " " ],
[ "identifier", "x" ], [ "identifier", "x" ],
[ "text", " " ], [ "text", " " ],
[ "keyword.operator", "-" ], [ "keyword.operator", "->" ],
[ "keyword.operator", ">" ],
[ "text", " " ], [ "text", " " ],
[ "identifier", "x" ] [ "identifier", "x" ]
] ]
@ -192,8 +188,7 @@
[ "text", " " ], [ "text", " " ],
[ "identifier", "r" ], [ "identifier", "r" ],
[ "text", " " ], [ "text", " " ],
[ "keyword.operator", "-" ], [ "keyword.operator", "->" ]
[ "keyword.operator", ">" ]
] ]
}, },
{ {
@ -221,8 +216,7 @@
[ "text", " " ], [ "text", " " ],
[ "identifier", "x" ], [ "identifier", "x" ],
[ "text", " " ], [ "text", " " ],
[ "keyword.operator", "-" ], [ "keyword.operator", "->" ]
[ "keyword.operator", ">" ]
] ]
}, },
{ {
@ -233,8 +227,7 @@
[ "text", " " ], [ "text", " " ],
[ "identifier", "x" ], [ "identifier", "x" ],
[ "text", " " ], [ "text", " " ],
[ "keyword.operator", ">" ], [ "keyword.operator", ">=" ],
[ "keyword.operator", "=" ],
[ "text", " " ], [ "text", " " ],
[ "constant.numeric", "0" ], [ "constant.numeric", "0" ],
[ "text", " " ], [ "text", " " ],
@ -253,8 +246,7 @@
[ "identifier", "return" ], [ "identifier", "return" ],
[ "text", " " ], [ "text", " " ],
[ "identifier", "acc" ], [ "identifier", "acc" ],
[ "paren.rparen", ")" ], [ "paren.rparen", "))" ]
[ "paren.rparen", ")" ]
] ]
} }
] ]

View file

@ -130,8 +130,7 @@
[ "lparen", "(" ], [ "lparen", "(" ],
[ "identifier", "$num_primes" ], [ "identifier", "$num_primes" ],
[ "constant.numeric", "-1" ], [ "constant.numeric", "-1" ],
[ "rparen", ")" ], [ "rparen", "))" ]
[ "rparen", ")" ]
] ]
}, },
{ {
@ -263,8 +262,7 @@
[ "lparen", "(" ], [ "lparen", "(" ],
[ "identifier", "$num_primes" ], [ "identifier", "$num_primes" ],
[ "constant.numeric", "-1" ], [ "constant.numeric", "-1" ],
[ "rparen", ")" ], [ "rparen", "))" ]
[ "rparen", ")" ]
] ]
}, },
{ {

View file

@ -932,11 +932,9 @@
"data": [ "data": [
[ "keyword.statementBegin", "select" ], [ "keyword.statementBegin", "select" ],
[ "text", " " ], [ "text", " " ],
[ "string", "'don'" ], [ "string", "'don''t do it now;'" ],
[ "string", "'t do it now;'" ],
[ "text", " " ], [ "text", " " ],
[ "keyword.operator", "|" ], [ "keyword.operator", "||" ],
[ "keyword.operator", "|" ],
[ "text", " " ], [ "text", " " ],
[ "string", "'maybe later'" ], [ "string", "'maybe later'" ],
[ "statementEnd", ";" ] [ "statementEnd", ";" ]
@ -959,14 +957,11 @@
[ "text", " " ], [ "text", " " ],
[ "support.function", "length" ], [ "support.function", "length" ],
[ "paren.lparen", "(" ], [ "paren.lparen", "(" ],
[ "string", "'some other'" ], [ "string", "'some other''s stuff'" ],
[ "string", "'s stuff'" ],
[ "text", " " ], [ "text", " " ],
[ "keyword.operator", "|" ], [ "keyword.operator", "||" ],
[ "keyword.operator", "|" ],
[ "text", " " ], [ "text", " " ],
[ "string", "$$" ], [ "string", "$$cat in hat's stuff $$" ],
[ "string", "cat in hat's stuff $$" ],
[ "paren.rparen", ")" ], [ "paren.rparen", ")" ],
[ "statementEnd", ";" ] [ "statementEnd", ";" ]
] ]

View file

@ -109,41 +109,8 @@
[ "support.function", "echo" ], [ "support.function", "echo" ],
[ "text", " " ], [ "text", " " ],
[ "string", "\"" ], [ "string", "\"" ],
[ "constant.language.escape", "\\n" ], [ "constant.language.escape", "\\n\\n" ],
[ "constant.language.escape", "\\n" ], [ "string", "Please enter a whole number ... \"" ],
[ "string", "P" ],
[ "string", "l" ],
[ "string", "e" ],
[ "string", "a" ],
[ "string", "s" ],
[ "string", "e" ],
[ "string", " " ],
[ "string", "e" ],
[ "string", "n" ],
[ "string", "t" ],
[ "string", "e" ],
[ "string", "r" ],
[ "string", " " ],
[ "string", "a" ],
[ "string", " " ],
[ "string", "w" ],
[ "string", "h" ],
[ "string", "o" ],
[ "string", "l" ],
[ "string", "e" ],
[ "string", " " ],
[ "string", "n" ],
[ "string", "u" ],
[ "string", "m" ],
[ "string", "b" ],
[ "string", "e" ],
[ "string", "r" ],
[ "string", " " ],
[ "string", "." ],
[ "string", "." ],
[ "string", "." ],
[ "string", " " ],
[ "string", "\"" ],
[ "text", ";" ] [ "text", ";" ]
] ]
}, },
@ -159,8 +126,7 @@
[ "support.function", "fgets" ], [ "support.function", "fgets" ],
[ "lparen", "(" ], [ "lparen", "(" ],
[ "constant.language", "STDIN" ], [ "constant.language", "STDIN" ],
[ "rparen", ")" ], [ "rparen", "))" ],
[ "rparen", ")" ],
[ "text", ";" ] [ "text", ";" ]
] ]
}, },
@ -182,27 +148,12 @@
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "text", " " ], [ "text", " " ],
[ "string", "\"" ], [ "string", "\"" ],
[ "constant.language.escape", "\\n" ], [ "constant.language.escape", "\\n\\n" ],
[ "constant.language.escape", "\\n" ], [ "string", "Factorial \"" ],
[ "string", "F" ],
[ "string", "a" ],
[ "string", "c" ],
[ "string", "t" ],
[ "string", "o" ],
[ "string", "r" ],
[ "string", "i" ],
[ "string", "a" ],
[ "string", "l" ],
[ "string", " " ],
[ "string", "\"" ],
[ "text", " . " ], [ "text", " . " ],
[ "variable", "$num" ], [ "variable", "$num" ],
[ "text", " . " ], [ "text", " . " ],
[ "string", "\"" ], [ "string", "\" = \"" ],
[ "string", " " ],
[ "string", "=" ],
[ "string", " " ],
[ "string", "\"" ],
[ "text", " . " ], [ "text", " . " ],
[ "identifier", "nfact" ], [ "identifier", "nfact" ],
[ "lparen", "(" ], [ "lparen", "(" ],
@ -210,8 +161,7 @@
[ "rparen", ")" ], [ "rparen", ")" ],
[ "text", " . " ], [ "text", " . " ],
[ "string", "\"" ], [ "string", "\"" ],
[ "constant.language.escape", "\\n" ], [ "constant.language.escape", "\\n\\n" ],
[ "constant.language.escape", "\\n" ],
[ "string", "\"" ], [ "string", "\"" ],
[ "text", ";" ] [ "text", ";" ]
] ]

View file

@ -173,8 +173,7 @@
"data": [ "data": [
[ "variable.instance", "$number" ], [ "variable.instance", "$number" ],
[ "text", " " ], [ "text", " " ],
[ "keyword.operator", "+" ], [ "keyword.operator", "+=" ],
[ "keyword.operator", "=" ],
[ "text", " " ], [ "text", " " ],
[ "constant.numeric", "3" ] [ "constant.numeric", "3" ]
] ]

View file

@ -122,8 +122,7 @@
[ "identifier", "atoi" ], [ "identifier", "atoi" ],
[ "paren.lparen", "(" ], [ "paren.lparen", "(" ],
[ "identifier", "i" ], [ "identifier", "i" ],
[ "paren.rparen", ")" ], [ "paren.rparen", "))" ]
[ "paren.rparen", ")" ]
] ]
}, },
{ {
@ -198,8 +197,7 @@
[ "identifier", "celsius" ], [ "identifier", "celsius" ],
[ "keyword.operator", "+" ], [ "keyword.operator", "+" ],
[ "constant.numeric", ".5" ], [ "constant.numeric", ".5" ],
[ "paren.rparen", ")" ], [ "paren.rparen", "))" ]
[ "paren.rparen", ")" ]
] ]
} }
] ]

View file

@ -0,0 +1,296 @@
[
{
"state": "start",
"data": [
[ "identifier", "Call" ],
[ "keyword.operator", ":" ]
]
},
{
"state": "start",
"data": [
[ "identifier", "lm" ],
[ "paren.keyword.operator", "(" ],
[ "identifier", "formula" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "identifier", "y" ],
[ "text", " " ],
[ "keyword.operator", "~" ],
[ "text", " " ],
[ "identifier", "x" ],
[ "paren.keyword.operator", ")" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ]
]
},
{
"state": "start",
"data": [
[ "identifier", "Residuals" ],
[ "keyword.operator", ":" ]
]
},
{
"state": "start",
"data": [
[ "constant.numeric", "1" ],
[ "text", " " ],
[ "constant.numeric", "2" ],
[ "text", " " ],
[ "constant.numeric", "3" ],
[ "text", " " ],
[ "constant.numeric", "4" ],
[ "text", " " ],
[ "constant.numeric", "5" ],
[ "text", " " ],
[ "constant.numeric", "6" ]
]
},
{
"state": "start",
"data": [
[ "constant.numeric", "3.3333" ],
[ "text", " " ],
[ "keyword.operator", "-" ],
[ "constant.numeric", "0.6667" ],
[ "text", " " ],
[ "keyword.operator", "-" ],
[ "constant.numeric", "2.6667" ],
[ "text", " " ],
[ "keyword.operator", "-" ],
[ "constant.numeric", "2.6667" ],
[ "text", " " ],
[ "keyword.operator", "-" ],
[ "constant.numeric", "0.6667" ],
[ "text", " " ],
[ "constant.numeric", "3.3333" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ]
]
},
{
"state": "start",
"data": [
[ "identifier", "Coefficients" ],
[ "keyword.operator", ":" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "identifier", "Estimate" ],
[ "text", " " ],
[ "identifier", "Std" ],
[ "text", ". " ],
[ "identifier", "Error" ],
[ "text", " " ],
[ "identifier", "t" ],
[ "text", " " ],
[ "identifier", "value" ],
[ "text", " " ],
[ "identifier", "Pr" ],
[ "paren.keyword.operator", "(" ],
[ "keyword.operator", ">|" ],
[ "identifier", "t" ],
[ "keyword.operator", "|" ],
[ "paren.keyword.operator", ")" ]
]
},
{
"state": "start",
"data": [
[ "paren.keyword.operator", "(" ],
[ "identifier", "Intercept" ],
[ "paren.keyword.operator", ")" ],
[ "text", " " ],
[ "keyword.operator", "-" ],
[ "constant.numeric", "9.3333" ],
[ "text", " " ],
[ "constant.numeric", "2.8441" ],
[ "text", " " ],
[ "keyword.operator", "-" ],
[ "constant.numeric", "3.282" ],
[ "text", " " ],
[ "constant.numeric", "0.030453" ],
[ "text", " " ],
[ "keyword.operator", "*" ]
]
},
{
"state": "start",
"data": [
[ "identifier", "x" ],
[ "text", " " ],
[ "constant.numeric", "7.0000" ],
[ "text", " " ],
[ "constant.numeric", "0.7303" ],
[ "text", " " ],
[ "constant.numeric", "9.585" ],
[ "text", " " ],
[ "constant.numeric", "0.000662" ],
[ "text", " " ],
[ "keyword.operator", "***" ]
]
},
{
"state": "start",
"data": [
[ "keyword.operator", "---" ]
]
},
{
"state": "start",
"data": [
[ "identifier", "Signif" ],
[ "text", ". " ],
[ "identifier", "codes" ],
[ "keyword.operator", ":" ],
[ "text", " " ],
[ "constant.numeric", "0" ],
[ "text", " ‘" ],
[ "keyword.operator", "***" ],
[ "text", "’ " ],
[ "constant.numeric", "0.001" ],
[ "text", " ‘" ],
[ "keyword.operator", "**" ],
[ "text", "’ " ],
[ "constant.numeric", "0.01" ],
[ "text", " ‘" ],
[ "keyword.operator", "*" ],
[ "text", "’ " ],
[ "constant.numeric", "0.05" ],
[ "text", " ‘.’ " ],
[ "constant.numeric", "0.1" ],
[ "text", " ‘ ’ " ],
[ "constant.numeric", "1" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ]
]
},
{
"state": "start",
"data": [
[ "identifier", "Residual" ],
[ "text", " " ],
[ "identifier", "standard" ],
[ "text", " " ],
[ "identifier", "error" ],
[ "keyword.operator", ":" ],
[ "text", " " ],
[ "constant.numeric", "3.055" ],
[ "text", " " ],
[ "identifier", "on" ],
[ "text", " " ],
[ "constant.numeric", "4" ],
[ "text", " " ],
[ "identifier", "degrees" ],
[ "text", " " ],
[ "identifier", "of" ],
[ "text", " " ],
[ "identifier", "freedom" ]
]
},
{
"state": "start",
"data": [
[ "identifier", "Multiple" ],
[ "text", " " ],
[ "identifier", "R" ],
[ "keyword.operator", "-" ],
[ "identifier", "squared" ],
[ "keyword.operator", ":" ],
[ "text", " " ],
[ "constant.numeric", "0.9583" ],
[ "text", ", " ],
[ "identifier", "Adjusted" ],
[ "text", " " ],
[ "identifier", "R" ],
[ "keyword.operator", "-" ],
[ "identifier", "squared" ],
[ "keyword.operator", ":" ],
[ "text", " " ],
[ "constant.numeric", "0.9478" ]
]
},
{
"state": "start",
"data": [
[ "constant.language.boolean", "F" ],
[ "keyword.operator", "-" ],
[ "identifier", "statistic" ],
[ "keyword.operator", ":" ],
[ "text", " " ],
[ "constant.numeric", "91.88" ],
[ "text", " " ],
[ "identifier", "on" ],
[ "text", " " ],
[ "constant.numeric", "1" ],
[ "text", " " ],
[ "identifier", "and" ],
[ "text", " " ],
[ "constant.numeric", "4" ],
[ "text", " " ],
[ "identifier", "DF" ],
[ "text", ", " ],
[ "identifier", "p" ],
[ "keyword.operator", "-" ],
[ "identifier", "value" ],
[ "keyword.operator", ":" ],
[ "text", " " ],
[ "constant.numeric", "0.000662" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ]
]
},
{
"state": "start",
"data": [
[ "keyword.operator", ">" ],
[ "text", " " ],
[ "identifier", "par" ],
[ "paren.keyword.operator", "(" ],
[ "identifier", "mfrow" ],
[ "keyword.operator", "=" ],
[ "identifier", "c" ],
[ "paren.keyword.operator", "(" ],
[ "constant.numeric", "2" ],
[ "text", ", " ],
[ "constant.numeric", "2" ],
[ "paren.keyword.operator", "))" ],
[ "text", " " ],
[ "comment", "# Request 2x2 plot layout" ]
]
},
{
"state": "start",
"data": [
[ "keyword.operator", ">" ],
[ "text", " " ],
[ "identifier", "plot" ],
[ "paren.keyword.operator", "(" ],
[ "identifier", "lm_1" ],
[ "paren.keyword.operator", ")" ],
[ "text", " " ],
[ "comment", "# Diagnostic plot of regression model" ]
]
}
]

View file

@ -0,0 +1,623 @@
[
{
"state": "start",
"data": [
[ "keyword", "\\name" ],
[ "paren.keyword.operator", "{" ],
[ "nospell.text", "picker" ],
[ "paren.keyword.operator", "}" ]
]
},
{
"state": "start",
"data": [
[ "keyword", "\\alias" ],
[ "paren.keyword.operator", "{" ],
[ "nospell.text", "picker" ],
[ "paren.keyword.operator", "}" ]
]
},
{
"state": "start",
"data": [
[ "keyword", "\\title" ],
[ "paren.keyword.operator", "{" ],
[ "text", "Create a picker control" ],
[ "paren.keyword.operator", "}" ]
]
},
{
"state": "start",
"data": [
[ "keyword", "\\description" ],
[ "paren.keyword.operator", "{" ]
]
},
{
"state": "start",
"data": [
[ "text", " Create a picker control to enable manipulation of plot variables based on a set of fixed choices." ]
]
},
{
"state": "start",
"data": [
[ "paren.keyword.operator", "}" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "nospell",
"data": [
[ "keyword", "\\usage" ],
[ "paren.keyword.operator", "{" ]
]
},
{
"state": "nospell",
"data": [
[ "nospell.text", "picker" ],
[ "paren.keyword.operator", "(" ],
[ "text", "...," ],
[ "nospell.text", " initial " ],
[ "text", "=" ],
[ "nospell.text", " NULL" ],
[ "text", "," ],
[ "nospell.text", " label " ],
[ "text", "=" ],
[ "nospell.text", " NULL" ],
[ "paren.keyword.operator", ")" ]
]
},
{
"state": "start",
"data": [
[ "paren.keyword.operator", "}" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "keyword", "\\arguments" ],
[ "paren.keyword.operator", "{" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "keyword", "\\item" ],
[ "paren.keyword.operator", "{" ],
[ "keyword", "\\dots" ],
[ "paren.keyword.operator", "}{" ]
]
},
{
"state": "start",
"data": [
[ "text", " Arguments containing objects to be presented as choices for the picker " ],
[ "paren.keyword.operator", "(" ],
[ "text", "or a list containing the choices" ],
[ "paren.keyword.operator", ")" ],
[ "text", ". If an element is named then the name is used to display it within the picker. If an element is not named then it is displayed within the picker using " ],
[ "keyword", "\\code" ],
[ "paren.keyword.operator", "{" ],
[ "keyword", "\\link" ],
[ "paren.keyword.operator", "{" ],
[ "nospell.text", "as" ],
[ "text", "." ],
[ "nospell.text", "character" ],
[ "paren.keyword.operator", "}}" ],
[ "text", ". " ]
]
},
{
"state": "start",
"data": [
[ "paren.keyword.operator", "}" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "keyword", "\\item" ],
[ "paren.keyword.operator", "{" ],
[ "nospell.text", "initial" ],
[ "paren.keyword.operator", "}{" ]
]
},
{
"state": "start",
"data": [
[ "text", " Initial value for picker. Value must be present in the list of choices specified. If not specified defaults to the first choice." ]
]
},
{
"state": "start",
"data": [
[ "paren.keyword.operator", "}" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "keyword", "\\item" ],
[ "paren.keyword.operator", "{" ],
[ "nospell.text", "label" ],
[ "paren.keyword.operator", "}{" ]
]
},
{
"state": "start",
"data": [
[ "text", " Display label for picker. Defaults to the variable name if not specified." ]
]
},
{
"state": "start",
"data": [
[ "paren.keyword.operator", "}" ]
]
},
{
"state": "start",
"data": [
[ "paren.keyword.operator", "}" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "keyword", "\\value" ],
[ "paren.keyword.operator", "{" ]
]
},
{
"state": "start",
"data": [
[ "text", " An object of class \"manipulator.picker\" which can be passed to the " ],
[ "keyword", "\\code" ],
[ "paren.keyword.operator", "{" ],
[ "keyword", "\\link" ],
[ "paren.keyword.operator", "{" ],
[ "nospell.text", "manipulate" ],
[ "paren.keyword.operator", "}}" ],
[ "text", " function." ]
]
},
{
"state": "start",
"data": [
[ "paren.keyword.operator", "}" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "keyword", "\\seealso" ],
[ "paren.keyword.operator", "{" ]
]
},
{
"state": "start",
"data": [
[ "keyword", "\\code" ],
[ "paren.keyword.operator", "{" ],
[ "keyword", "\\link" ],
[ "paren.keyword.operator", "{" ],
[ "nospell.text", "manipulate" ],
[ "paren.keyword.operator", "}}" ],
[ "text", ", " ],
[ "keyword", "\\code" ],
[ "paren.keyword.operator", "{" ],
[ "keyword", "\\link" ],
[ "paren.keyword.operator", "{" ],
[ "nospell.text", "slider" ],
[ "paren.keyword.operator", "}}" ],
[ "text", ", " ],
[ "keyword", "\\code" ],
[ "paren.keyword.operator", "{" ],
[ "keyword", "\\link" ],
[ "paren.keyword.operator", "{" ],
[ "nospell.text", "checkbox" ],
[ "paren.keyword.operator", "}}" ],
[ "text", ", " ],
[ "keyword", "\\code" ],
[ "paren.keyword.operator", "{" ],
[ "keyword", "\\link" ],
[ "paren.keyword.operator", "{" ],
[ "nospell.text", "button" ],
[ "paren.keyword.operator", "}}" ]
]
},
{
"state": "start",
"data": [
[ "paren.keyword.operator", "}" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": []
},
{
"state": "nospell",
"data": [
[ "keyword", "\\examples" ],
[ "paren.keyword.operator", "{" ]
]
},
{
"state": "nospell",
"data": [
[ "keyword", "\\dontrun" ],
[ "paren.keyword.operator", "{" ]
]
},
{
"state": "nospell",
"data": []
},
{
"state": "nospell",
"data": [
[ "text", "##" ],
[ "nospell.text", " Filtering data with a picker" ]
]
},
{
"state": "nospell",
"data": [
[ "nospell.text", "manipulate" ],
[ "paren.keyword.operator", "(" ]
]
},
{
"state": "nospell",
"data": [
[ "nospell.text", " barplot" ],
[ "paren.keyword.operator", "(" ],
[ "nospell.text", "as" ],
[ "text", "." ],
[ "nospell.text", "matrix" ],
[ "paren.keyword.operator", "(" ],
[ "nospell.text", "longley" ],
[ "paren.keyword.operator", "[" ],
[ "text", "," ],
[ "nospell.text", "factor" ],
[ "paren.keyword.operator", "])" ],
[ "text", "," ],
[ "nospell.text", " " ]
]
},
{
"state": "nospell",
"data": [
[ "nospell.text", " beside " ],
[ "text", "=" ],
[ "nospell.text", " TRUE" ],
[ "text", "," ],
[ "nospell.text", " main " ],
[ "text", "=" ],
[ "nospell.text", " factor" ],
[ "paren.keyword.operator", ")" ],
[ "text", "," ]
]
},
{
"state": "nospell",
"data": [
[ "nospell.text", " factor " ],
[ "text", "=" ],
[ "nospell.text", " picker" ],
[ "paren.keyword.operator", "(" ],
[ "text", "\"" ],
[ "nospell.text", "GNP" ],
[ "text", "\"," ],
[ "nospell.text", " " ],
[ "text", "\"" ],
[ "nospell.text", "Unemployed" ],
[ "text", "\"," ],
[ "nospell.text", " " ],
[ "text", "\"" ],
[ "nospell.text", "Employed" ],
[ "text", "\"" ],
[ "paren.keyword.operator", "))" ]
]
},
{
"state": "nospell",
"data": []
},
{
"state": "nospell",
"data": [
[ "text", "##" ],
[ "nospell.text", " Create a picker with labels" ]
]
},
{
"state": "nospell",
"data": [
[ "nospell.text", "manipulate" ],
[ "paren.keyword.operator", "(" ]
]
},
{
"state": "nospell",
"data": [
[ "nospell.text", " plot" ],
[ "paren.keyword.operator", "(" ],
[ "nospell.text", "pressure" ],
[ "text", "," ],
[ "nospell.text", " type " ],
[ "text", "=" ],
[ "nospell.text", " type" ],
[ "paren.keyword.operator", ")" ],
[ "text", "," ],
[ "nospell.text", " " ]
]
},
{
"state": "nospell",
"data": [
[ "nospell.text", " type " ],
[ "text", "=" ],
[ "nospell.text", " picker" ],
[ "paren.keyword.operator", "(" ],
[ "text", "\"" ],
[ "nospell.text", "points" ],
[ "text", "\"" ],
[ "nospell.text", " " ],
[ "text", "=" ],
[ "nospell.text", " " ],
[ "text", "\"" ],
[ "nospell.text", "p" ],
[ "text", "\"," ],
[ "nospell.text", " " ],
[ "text", "\"" ],
[ "nospell.text", "line" ],
[ "text", "\"" ],
[ "nospell.text", " " ],
[ "text", "=" ],
[ "nospell.text", " " ],
[ "text", "\"" ],
[ "nospell.text", "l" ],
[ "text", "\"," ],
[ "nospell.text", " " ],
[ "text", "\"" ],
[ "nospell.text", "step" ],
[ "text", "\"" ],
[ "nospell.text", " " ],
[ "text", "=" ],
[ "nospell.text", " " ],
[ "text", "\"" ],
[ "nospell.text", "s" ],
[ "text", "\"" ],
[ "paren.keyword.operator", "))" ]
]
},
{
"state": "nospell",
"data": [
[ "nospell.text", " " ]
]
},
{
"state": "nospell",
"data": [
[ "text", "##" ],
[ "nospell.text", " Picker with groups" ]
]
},
{
"state": "nospell",
"data": [
[ "nospell.text", "manipulate" ],
[ "paren.keyword.operator", "(" ]
]
},
{
"state": "nospell",
"data": [
[ "nospell.text", " barplot" ],
[ "paren.keyword.operator", "(" ],
[ "nospell.text", "as" ],
[ "text", "." ],
[ "nospell.text", "matrix" ],
[ "paren.keyword.operator", "(" ],
[ "nospell.text", "mtcars" ],
[ "paren.keyword.operator", "[" ],
[ "nospell.text", "group" ],
[ "text", ",\"" ],
[ "nospell.text", "mpg" ],
[ "text", "\"" ],
[ "paren.keyword.operator", "])" ],
[ "text", "," ],
[ "nospell.text", " beside" ],
[ "text", "=" ],
[ "nospell.text", "TRUE" ],
[ "paren.keyword.operator", ")" ],
[ "text", "," ]
]
},
{
"state": "nospell",
"data": [
[ "nospell.text", " group " ],
[ "text", "=" ],
[ "nospell.text", " picker" ],
[ "paren.keyword.operator", "(" ],
[ "text", "\"" ],
[ "nospell.text", "Group 1" ],
[ "text", "\"" ],
[ "nospell.text", " " ],
[ "text", "=" ],
[ "nospell.text", " 1" ],
[ "text", ":" ],
[ "nospell.text", "11" ],
[ "text", "," ],
[ "nospell.text", " " ]
]
},
{
"state": "nospell",
"data": [
[ "nospell.text", " " ],
[ "text", "\"" ],
[ "nospell.text", "Group 2" ],
[ "text", "\"" ],
[ "nospell.text", " " ],
[ "text", "=" ],
[ "nospell.text", " 12" ],
[ "text", ":" ],
[ "nospell.text", "22" ],
[ "text", "," ],
[ "nospell.text", " " ]
]
},
{
"state": "nospell",
"data": [
[ "nospell.text", " " ],
[ "text", "\"" ],
[ "nospell.text", "Group 3" ],
[ "text", "\"" ],
[ "nospell.text", " " ],
[ "text", "=" ],
[ "nospell.text", " 23" ],
[ "text", ":" ],
[ "nospell.text", "32" ],
[ "paren.keyword.operator", "))" ]
]
},
{
"state": "nospell",
"data": []
},
{
"state": "nospell",
"data": [
[ "text", "##" ],
[ "nospell.text", " Histogram w" ],
[ "text", "/" ],
[ "nospell.text", " picker to select type" ]
]
},
{
"state": "nospell",
"data": [
[ "nospell.text", "require" ],
[ "paren.keyword.operator", "(" ],
[ "nospell.text", "lattice" ],
[ "paren.keyword.operator", ")" ]
]
},
{
"state": "nospell",
"data": [
[ "nospell.text", "require" ],
[ "paren.keyword.operator", "(" ],
[ "nospell.text", "stats" ],
[ "paren.keyword.operator", ")" ]
]
},
{
"state": "nospell",
"data": [
[ "nospell.text", "manipulate" ],
[ "paren.keyword.operator", "(" ]
]
},
{
"state": "nospell",
"data": [
[ "nospell.text", " histogram" ],
[ "paren.keyword.operator", "(" ],
[ "text", "~" ],
[ "nospell.text", " height " ],
[ "text", "|" ],
[ "nospell.text", " voice" ],
[ "text", "." ],
[ "nospell.text", "part" ],
[ "text", "," ],
[ "nospell.text", " " ]
]
},
{
"state": "nospell",
"data": [
[ "nospell.text", " data " ],
[ "text", "=" ],
[ "nospell.text", " singer" ],
[ "text", "," ],
[ "nospell.text", " type " ],
[ "text", "=" ],
[ "nospell.text", " type" ],
[ "paren.keyword.operator", ")" ],
[ "text", "," ]
]
},
{
"state": "nospell",
"data": [
[ "nospell.text", " type " ],
[ "text", "=" ],
[ "nospell.text", " picker" ],
[ "paren.keyword.operator", "(" ],
[ "text", "\"" ],
[ "nospell.text", "percent" ],
[ "text", "\"," ],
[ "nospell.text", " " ],
[ "text", "\"" ],
[ "nospell.text", "count" ],
[ "text", "\"," ],
[ "nospell.text", " " ],
[ "text", "\"" ],
[ "nospell.text", "density" ],
[ "text", "\"" ],
[ "paren.keyword.operator", "))" ]
]
},
{
"state": "nospell",
"data": []
},
{
"state": "start",
"data": [
[ "paren.keyword.operator", "}" ]
]
},
{
"state": "start",
"data": [
[ "paren.keyword.operator", "}" ]
]
}
]

View file

@ -0,0 +1,168 @@
[
{
"state": "start",
"data": [
[ "meta.tag", "<" ],
[ "meta.tag.tag-name", "html" ],
[ "meta.tag.r", ">" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "meta.tag", "<" ],
[ "meta.tag.tag-name", "head" ],
[ "meta.tag.r", ">" ]
]
},
{
"state": "start",
"data": [
[ "meta.tag", "<" ],
[ "meta.tag.tag-name", "title" ],
[ "meta.tag.r", ">" ],
[ "text", "Title" ],
[ "meta.tag", "</" ],
[ "meta.tag.tag-name", "title" ],
[ "meta.tag.r", ">" ]
]
},
{
"state": "start",
"data": [
[ "meta.tag", "</" ],
[ "meta.tag.tag-name", "head" ],
[ "meta.tag.r", ">" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "meta.tag", "<" ],
[ "meta.tag.tag-name", "body" ],
[ "meta.tag.r", ">" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "meta.tag", "<" ],
[ "meta.tag.tag-name", "p" ],
[ "meta.tag.r", ">" ],
[ "text", "This is an R HTML document. When you click the " ],
[ "meta.tag", "<" ],
[ "meta.tag.tag-name", "b" ],
[ "meta.tag.r", ">" ],
[ "text", "Knit HTML" ],
[ "meta.tag", "</" ],
[ "meta.tag.tag-name", "b" ],
[ "meta.tag.r", ">" ],
[ "text", " button a web page will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:" ],
[ "meta.tag", "</" ],
[ "meta.tag.tag-name", "p" ],
[ "meta.tag.r", ">" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "r-start",
"data": [
[ "support.function.codebegin", "<!--begin.rcode" ]
]
},
{
"state": "r-start",
"data": [
[ "identifier", "summary" ],
[ "paren.keyword.operator", "(" ],
[ "identifier", "cars" ],
[ "paren.keyword.operator", ")" ]
]
},
{
"state": "start",
"data": [
[ "support.function.codeend", "end.rcode-->" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "meta.tag", "<" ],
[ "meta.tag.tag-name", "p" ],
[ "meta.tag.r", ">" ],
[ "text", "You can also embed plots, for example:" ],
[ "meta.tag", "</" ],
[ "meta.tag.tag-name", "p" ],
[ "meta.tag.r", ">" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "r-start",
"data": [
[ "support.function.codebegin", "<!--begin.rcode fig.width=7, fig.height=6" ]
]
},
{
"state": "r-start",
"data": [
[ "identifier", "plot" ],
[ "paren.keyword.operator", "(" ],
[ "identifier", "cars" ],
[ "paren.keyword.operator", ")" ]
]
},
{
"state": "start",
"data": [
[ "support.function.codeend", "end.rcode-->" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "meta.tag", "</" ],
[ "meta.tag.tag-name", "body" ],
[ "meta.tag.r", ">" ]
]
},
{
"state": "start",
"data": [
[ "meta.tag", "</" ],
[ "meta.tag.tag-name", "html" ],
[ "meta.tag.r", ">" ]
]
},
{
"state": "start",
"data": []
}
]

View file

@ -92,7 +92,7 @@
[ "text", " " ], [ "text", " " ],
[ "identifier", "fact" ], [ "identifier", "fact" ],
[ "paren.lparen", "(" ], [ "paren.lparen", "(" ],
[ "variable.class", "ARGV" ], [ "support.class", "ARGV" ],
[ "paren.lparen", "[" ], [ "paren.lparen", "[" ],
[ "constant.numeric", "0" ], [ "constant.numeric", "0" ],
[ "paren.rparen", "]" ], [ "paren.rparen", "]" ],
@ -100,5 +100,121 @@
[ "identifier", "to_i" ], [ "identifier", "to_i" ],
[ "paren.rparen", ")" ] [ "paren.rparen", ")" ]
] ]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "keyword", "class" ],
[ "text", " " ],
[ "support.class", "Range" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "keyword", "def" ],
[ "text", " " ],
[ "identifier", "to_json" ],
[ "paren.lparen", "(" ],
[ "keyword.operator", "*" ],
[ "identifier", "a" ],
[ "paren.rparen", ")" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "string", "'json_class'" ],
[ "text", " " ],
[ "punctuation.separator.key-value", "=>" ],
[ "text", " " ],
[ "variable.language", "self" ],
[ "text", "." ],
[ "keyword", "class" ],
[ "text", "." ],
[ "identifier", "name" ],
[ "text", ", " ],
[ "comment", "# = 'Range'" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "string", "'data'" ],
[ "text", " " ],
[ "punctuation.separator.key-value", "=>" ],
[ "text", " " ],
[ "paren.lparen", "[" ],
[ "text", " " ],
[ "identifier", "first" ],
[ "text", ", " ],
[ "identifier", "last" ],
[ "text", ", " ],
[ "identifier", "exclude_end" ],
[ "text", "? " ],
[ "paren.rparen", "]" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "paren.rparen", "}" ],
[ "text", "." ],
[ "identifier", "to_json" ],
[ "paren.lparen", "(" ],
[ "keyword.operator", "*" ],
[ "identifier", "a" ],
[ "paren.rparen", ")" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "keyword", "end" ]
]
},
{
"state": "start",
"data": [
[ "keyword", "end" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "paren.lparen", "{" ],
[ "constant.other.symbol.ruby", ":id" ],
[ "text", " " ],
[ "punctuation.separator.key-value", "=>" ],
[ "text", " " ],
[ "constant.numeric", "34" ],
[ "text", ", " ],
[ "constant.other.symbol.ruby", ":sdfasdfasdf" ],
[ "text", " " ],
[ "punctuation.separator.key-value", "=>" ],
[ "text", " " ],
[ "string", "\"asdasdads\"" ],
[ "paren.rparen", "}" ]
]
} }
] ]

View file

@ -26,15 +26,13 @@
"data": [ "data": [
[ "text", "\t" ], [ "text", "\t" ],
[ "identifier", "translate" ], [ "identifier", "translate" ],
[ "paren.lparen", "(" ], [ "paren.lparen", "([" ],
[ "paren.lparen", "[" ],
[ "identifier", "xpos" ], [ "identifier", "xpos" ],
[ "text", "," ], [ "text", "," ],
[ "identifier", "ypos" ], [ "identifier", "ypos" ],
[ "text", "," ], [ "text", "," ],
[ "identifier", "zpos" ], [ "identifier", "zpos" ],
[ "paren.rparen", "]" ], [ "paren.rparen", "])" ],
[ "paren.rparen", ")" ],
[ "paren.lparen", "{" ] [ "paren.lparen", "{" ]
] ]
}, },
@ -53,8 +51,7 @@
"data": [ "data": [
[ "text", "\t\t\t" ], [ "text", "\t\t\t" ],
[ "identifier", "cube" ], [ "identifier", "cube" ],
[ "paren.lparen", "(" ], [ "paren.lparen", "([" ],
[ "paren.lparen", "[" ],
[ "constant.numeric", "10" ], [ "constant.numeric", "10" ],
[ "text", "," ], [ "text", "," ],
[ "constant.numeric", "10" ], [ "constant.numeric", "10" ],
@ -87,15 +84,13 @@
"data": [ "data": [
[ "text", "\t\t\t" ], [ "text", "\t\t\t" ],
[ "identifier", "translate" ], [ "identifier", "translate" ],
[ "paren.lparen", "(" ], [ "paren.lparen", "([" ],
[ "paren.lparen", "[" ],
[ "constant.numeric", "0" ], [ "constant.numeric", "0" ],
[ "text", "," ], [ "text", "," ],
[ "constant.numeric", "0" ], [ "constant.numeric", "0" ],
[ "text", "," ], [ "text", "," ],
[ "constant.numeric", "10" ], [ "constant.numeric", "10" ],
[ "paren.rparen", "]" ], [ "paren.rparen", "])" ],
[ "paren.rparen", ")" ],
[ "identifier", "sphere" ], [ "identifier", "sphere" ],
[ "paren.lparen", "(" ], [ "paren.lparen", "(" ],
[ "constant.numeric", "5" ], [ "constant.numeric", "5" ],
@ -148,8 +143,7 @@
[ "constant.numeric", "0" ], [ "constant.numeric", "0" ],
[ "text", ":" ], [ "text", ":" ],
[ "constant.numeric", "30" ], [ "constant.numeric", "30" ],
[ "paren.rparen", "]" ], [ "paren.rparen", "])" ],
[ "paren.rparen", ")" ],
[ "paren.lparen", "{" ] [ "paren.lparen", "{" ]
] ]
}, },
@ -220,8 +214,7 @@
[ "constant.numeric", "7" ], [ "constant.numeric", "7" ],
[ "text", ", " ], [ "text", ", " ],
[ "constant.numeric", "11" ], [ "constant.numeric", "11" ],
[ "paren.rparen", "]" ], [ "paren.rparen", "])" ],
[ "paren.rparen", ")" ],
[ "paren.lparen", "{" ] [ "paren.lparen", "{" ]
] ]
}, },
@ -230,8 +223,7 @@
"data": [ "data": [
[ "text", "\t" ], [ "text", "\t" ],
[ "identifier", "rotate" ], [ "identifier", "rotate" ],
[ "paren.lparen", "(" ], [ "paren.lparen", "([" ],
[ "paren.lparen", "[" ],
[ "identifier", "i" ], [ "identifier", "i" ],
[ "keyword.operator", "*" ], [ "keyword.operator", "*" ],
[ "constant.numeric", "10" ], [ "constant.numeric", "10" ],
@ -239,18 +231,15 @@
[ "constant.numeric", "0" ], [ "constant.numeric", "0" ],
[ "text", "," ], [ "text", "," ],
[ "constant.numeric", "0" ], [ "constant.numeric", "0" ],
[ "paren.rparen", "]" ], [ "paren.rparen", "])" ],
[ "paren.rparen", ")" ],
[ "identifier", "scale" ], [ "identifier", "scale" ],
[ "paren.lparen", "(" ], [ "paren.lparen", "([" ],
[ "paren.lparen", "[" ],
[ "constant.numeric", "1" ], [ "constant.numeric", "1" ],
[ "text", "," ], [ "text", "," ],
[ "constant.numeric", "1" ], [ "constant.numeric", "1" ],
[ "text", "," ], [ "text", "," ],
[ "identifier", "i" ], [ "identifier", "i" ],
[ "paren.rparen", "]" ], [ "paren.rparen", "])" ],
[ "paren.rparen", ")" ],
[ "identifier", "cube" ], [ "identifier", "cube" ],
[ "paren.lparen", "(" ], [ "paren.lparen", "(" ],
[ "constant.numeric", "10" ], [ "constant.numeric", "10" ],

View file

@ -330,8 +330,7 @@
[ "text", " " ], [ "text", " " ],
[ "identifier", "Start" ], [ "identifier", "Start" ],
[ "text", " " ], [ "text", " " ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=>" ]
[ "keyword.operator", ">" ]
] ]
}, },
{ {
@ -378,8 +377,7 @@
[ "text", " " ], [ "text", " " ],
[ "identifier", "SendPing" ], [ "identifier", "SendPing" ],
[ "text", " " ], [ "text", " " ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=>" ]
[ "keyword.operator", ">" ]
] ]
}, },
{ {
@ -416,8 +414,7 @@
[ "text", " " ], [ "text", " " ],
[ "identifier", "Pong" ], [ "identifier", "Pong" ],
[ "text", " " ], [ "text", " " ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=>" ]
[ "keyword.operator", ">" ]
] ]
}, },
{ {
@ -621,8 +618,7 @@
[ "text", " " ], [ "text", " " ],
[ "identifier", "Ping" ], [ "identifier", "Ping" ],
[ "text", " " ], [ "text", " " ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=>" ]
[ "keyword.operator", ">" ]
] ]
}, },
{ {
@ -694,8 +690,7 @@
[ "text", " " ], [ "text", " " ],
[ "identifier", "Stop" ], [ "identifier", "Stop" ],
[ "text", " " ], [ "text", " " ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=>" ]
[ "keyword.operator", ">" ]
] ]
}, },
{ {

View file

@ -2,8 +2,7 @@
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "comment", "/*" ], [ "comment", "/* style.scss */" ]
[ "comment", " style.scss */" ]
] ]
}, },
{ {

View file

@ -52,8 +52,7 @@
[ "text", " " ], [ "text", " " ],
[ "identifier", "config" ], [ "identifier", "config" ],
[ "text", " " ], [ "text", " " ],
[ "keyword.operator", "-" ], [ "keyword.operator", "--" ],
[ "keyword.operator", "-" ],
[ "identifier", "get" ], [ "identifier", "get" ],
[ "text", " " ], [ "text", " " ],
[ "identifier", "github" ], [ "identifier", "github" ],
@ -110,7 +109,7 @@
[ "text", " " ], [ "text", " " ],
[ "variable", "repo=" ], [ "variable", "repo=" ],
[ "text", "`" ], [ "text", "`" ],
[ "constant.language", "echo" ], [ "support.function.builtin", "echo" ],
[ "text", " " ], [ "text", " " ],
[ "variable", "$remote" ], [ "variable", "$remote" ],
[ "text", " | " ], [ "text", " | " ],
@ -131,7 +130,7 @@
"state": "start", "state": "start",
"data": [ "data": [
[ "text", " " ], [ "text", " " ],
[ "constant.language", "echo" ], [ "support.function.builtin", "echo" ],
[ "text", " " ], [ "text", " " ],
[ "variable", "$repo" ], [ "variable", "$repo" ],
[ "text", " | " ], [ "text", " | " ],
@ -152,7 +151,7 @@
"state": "start", "state": "start",
"data": [ "data": [
[ "text", " " ], [ "text", " " ],
[ "constant.language", "exit" ], [ "support.function.builtin", "exit" ],
[ "text", " " ], [ "text", " " ],
[ "constant.numeric", "1" ] [ "constant.numeric", "1" ]
] ]
@ -172,7 +171,7 @@
[ "text", " " ], [ "text", " " ],
[ "variable", "repo=" ], [ "variable", "repo=" ],
[ "text", "`" ], [ "text", "`" ],
[ "constant.language", "echo" ], [ "support.function.builtin", "echo" ],
[ "text", " " ], [ "text", " " ],
[ "variable", "$remote" ], [ "variable", "$remote" ],
[ "text", " | " ], [ "text", " | " ],
@ -193,7 +192,7 @@
"state": "start", "state": "start",
"data": [ "data": [
[ "text", " " ], [ "text", " " ],
[ "constant.language", "echo" ], [ "support.function.builtin", "echo" ],
[ "text", " " ], [ "text", " " ],
[ "variable", "$repo" ], [ "variable", "$repo" ],
[ "text", " | " ], [ "text", " | " ],
@ -219,7 +218,7 @@
"state": "start", "state": "start",
"data": [ "data": [
[ "text", " " ], [ "text", " " ],
[ "constant.language", "exit" ], [ "support.function.builtin", "exit" ],
[ "text", " " ], [ "text", " " ],
[ "constant.numeric", "1" ] [ "constant.numeric", "1" ]
] ]
@ -239,7 +238,7 @@
[ "text", " " ], [ "text", " " ],
[ "variable", "repo=" ], [ "variable", "repo=" ],
[ "text", "`" ], [ "text", "`" ],
[ "constant.language", "echo" ], [ "support.function.builtin", "echo" ],
[ "text", " " ], [ "text", " " ],
[ "variable", "$remote" ], [ "variable", "$remote" ],
[ "text", " | " ], [ "text", " | " ],
@ -260,7 +259,7 @@
"state": "start", "state": "start",
"data": [ "data": [
[ "text", " " ], [ "text", " " ],
[ "constant.language", "echo" ], [ "support.function.builtin", "echo" ],
[ "text", " " ], [ "text", " " ],
[ "variable", "$repo" ], [ "variable", "$repo" ],
[ "text", " | " ], [ "text", " | " ],
@ -281,7 +280,7 @@
"state": "start", "state": "start",
"data": [ "data": [
[ "text", " " ], [ "text", " " ],
[ "constant.language", "exit" ], [ "support.function.builtin", "exit" ],
[ "text", " " ], [ "text", " " ],
[ "constant.numeric", "1" ] [ "constant.numeric", "1" ]
] ]
@ -328,7 +327,7 @@
"state": "start", "state": "start",
"data": [ "data": [
[ "text", " " ], [ "text", " " ],
[ "constant.language", "echo" ], [ "support.function.builtin", "echo" ],
[ "text", " " ], [ "text", " " ],
[ "string", "\"Couldn't find a valid remote\"" ], [ "string", "\"Couldn't find a valid remote\"" ],
[ "text", " " ], [ "text", " " ],
@ -340,7 +339,7 @@
"state": "start", "state": "start",
"data": [ "data": [
[ "text", " " ], [ "text", " " ],
[ "constant.language", "exit" ], [ "support.function.builtin", "exit" ],
[ "text", " " ], [ "text", " " ],
[ "constant.numeric", "1" ] [ "constant.numeric", "1" ]
] ]
@ -389,8 +388,7 @@
[ "identifier", "HEAD" ], [ "identifier", "HEAD" ],
[ "text", " " ], [ "text", " " ],
[ "constant.numeric", "2" ], [ "constant.numeric", "2" ],
[ "keyword.operator", ">" ], [ "keyword.operator", ">/" ],
[ "keyword.operator", "/" ],
[ "identifier", "dev" ], [ "identifier", "dev" ],
[ "keyword.operator", "/" ], [ "keyword.operator", "/" ],
[ "identifier", "null" ], [ "identifier", "null" ],
@ -401,7 +399,7 @@
"state": "start", "state": "start",
"data": [ "data": [
[ "text", " " ], [ "text", " " ],
[ "constant.language", "echo" ], [ "support.function.builtin", "echo" ],
[ "text", " " ], [ "text", " " ],
[ "string", "\"http://github.com/$repo/pull/new/${branch##refs/heads/}\"" ] [ "string", "\"http://github.com/$repo/pull/new/${branch##refs/heads/}\"" ]
] ]
@ -416,7 +414,7 @@
"state": "start", "state": "start",
"data": [ "data": [
[ "text", " " ], [ "text", " " ],
[ "constant.language", "exit" ], [ "support.function.builtin", "exit" ],
[ "text", " " ], [ "text", " " ],
[ "constant.numeric", "1" ] [ "constant.numeric", "1" ]
] ]

View file

@ -0,0 +1,425 @@
[
{
"state": "start",
"data": [
[ "comment", "// I'm a comment!" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "comment",
"data": [
[ "comment", "/*" ]
]
},
{
"state": "comment",
"data": [
[ "comment", " * Adds the given numbers together." ]
]
},
{
"state": "start",
"data": [
[ "comment", " */" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": []
},
{
"state": "comment",
"data": [
[ "comment", "/*!" ]
]
},
{
"state": "comment",
"data": [
[ "comment", " * Adds the given numbers together." ]
]
},
{
"state": "start",
"data": [
[ "comment", " */" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "entity.name.function.stylus", "asdasdasdad" ],
[ "text", "(df, ad" ],
[ "keyword.operator.stylus", "=" ],
[ "constant.numeric", "23" ],
[ "text", ")" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "entity.name.function.stylus", "add" ],
[ "text", "(" ],
[ "entity.name.tag.stylus", "a" ],
[ "text", ", " ],
[ "entity.name.tag.stylus", "b" ],
[ "text", " " ],
[ "keyword.operator.stylus", "=" ],
[ "text", " " ],
[ "entity.name.tag.stylus", "a" ],
[ "text", ")" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "entity.name.tag.stylus", "a" ],
[ "text", " " ],
[ "keyword.operator.stylus", "+" ],
[ "text", " " ],
[ "entity.name.tag.stylus", "b" ]
]
},
{
"state": "start",
"data": [
[ "entity.name.function.stylus", "green" ],
[ "text", "(" ],
[ "constant.numeric", "#0c0" ],
[ "text", ")" ]
]
},
{
"state": "start",
"data": [
[ "text", " add(" ],
[ "constant.numeric", "10" ],
[ "text", ", " ],
[ "constant.numeric", "5" ],
[ "text", ")" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "comment", "// => 15" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "text", " add(" ],
[ "constant.numeric", "10" ],
[ "text", ")" ]
]
},
{
"state": "start",
"data": [
[ "text", " add(" ],
[ "entity.name.tag.stylus", "a" ],
[ "text", ", " ],
[ "entity.name.tag.stylus", "b" ],
[ "text", ")" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "entity.language.stylus", " &" ],
[ "text", "asdasd" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "text", " (" ],
[ "variable.language.stylus", "arguments" ],
[ "text", ")" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "keyword.stylus", "@sdfsdf" ]
]
},
{
"state": "start",
"data": [
[ "entity.other.attribute-name.class.stylus", ".signatures" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "support.type", "background-color" ],
[ "text", " " ],
[ "constant.numeric", "#e0e8e0" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "support.type", "border" ],
[ "text", " " ],
[ "constant.numeric", "1" ],
[ "keyword", "px" ],
[ "text", " " ],
[ "support.constant", "solid" ],
[ "text", " grayLighter" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "support.type", "box-shadow" ],
[ "text", " " ],
[ "constant.numeric", "0" ],
[ "text", " " ],
[ "constant.numeric", "0" ],
[ "text", " " ],
[ "constant.numeric", "3" ],
[ "keyword", "px" ],
[ "text", " grayLightest" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "support.type", "border-radius" ],
[ "text", " " ],
[ "constant.numeric", "3" ],
[ "keyword", "px" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "support.type", "padding" ],
[ "text", " " ],
[ "constant.numeric", "3" ],
[ "keyword", "px" ],
[ "text", " " ],
[ "constant.numeric", "5" ],
[ "keyword", "px" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "string", "\"adsads\"" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "support.type", "margin-left" ],
[ "text", " " ],
[ "constant.numeric", "0" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "support.type", "list-style" ],
[ "text", " " ],
[ "support.constant", "none" ]
]
},
{
"state": "start",
"data": [
[ "entity.other.attribute-name.class.stylus", ".signature" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "support.type", "list-style" ],
[ "text", " " ],
[ "support.constant", "none" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "support.type", "display" ],
[ "text", ": " ],
[ "support.constant", "inline" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "support.type", "margin-left" ],
[ "text", " " ],
[ "constant.numeric", "0" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "keyword.operator.stylus", ">" ],
[ "text", " " ],
[ "entity.name.tag.stylus", "li" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "support.type", "display" ],
[ "text", " " ],
[ "support.constant", "inline" ]
]
},
{
"state": "start",
"data": [
[ "keyword.operator.stylus", "is" ],
[ "text", " " ],
[ "keyword.operator.stylus", "not" ]
]
},
{
"state": "start",
"data": [
[ "entity.other.attribute-name.class.stylus", ".signature-values" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "support.type", "list-style" ],
[ "text", " " ],
[ "support.constant", "none" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "support.type", "display" ],
[ "text", " " ],
[ "support.constant", "inline" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "support.type", "margin-left" ],
[ "text", " " ],
[ "constant.numeric", "0" ]
]
},
{
"state": "start",
"data": [
[ "entity.language.stylus", " &" ],
[ "punctuation", ":" ],
[ "entity.other.attribute-name.pseudo-element.css", "before" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "support.type", "content" ],
[ "text", " " ],
[ "string", "'→'" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "support.type", "margin" ],
[ "text", " " ],
[ "constant.numeric", "0" ],
[ "text", " " ],
[ "constant.numeric", "5" ],
[ "keyword", "px" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "keyword.operator.stylus", ">" ],
[ "text", " " ],
[ "entity.name.tag.stylus", "li" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "keyword.control.stylus", "!important" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "keyword.control.stylus", "unless" ]
]
}
]

View file

@ -35,7 +35,7 @@
[ "entity.other.attribute-name", "onload" ], [ "entity.other.attribute-name", "onload" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"StartAnimation(evt)\"" ], [ "string", "\"StartAnimation(evt)\"" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -48,11 +48,11 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "title" ], [ "meta.tag.tag-name", "title" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "Test Tube Progress Bar" ], [ "text", "Test Tube Progress Bar" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "title" ], [ "meta.tag.tag-name", "title" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -61,11 +61,11 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "desc" ], [ "meta.tag.tag-name", "desc" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "Created for the Web Directions SVG competition" ], [ "text", "Created for the Web Directions SVG competition" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "desc" ], [ "meta.tag.tag-name", "desc" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -82,9 +82,8 @@
[ "entity.other.attribute-name", "type" ], [ "entity.other.attribute-name", "type" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"text/ecmascript\"" ], [ "string", "\"text/ecmascript\"" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "keyword.operator", "<" ], [ "keyword.operator", "<!" ],
[ "keyword.operator", "!" ],
[ "paren.lparen", "[" ], [ "paren.lparen", "[" ],
[ "identifier", "CDATA" ], [ "identifier", "CDATA" ],
[ "paren.lparen", "[" ] [ "paren.lparen", "[" ]
@ -449,8 +448,7 @@
[ "text", " " ], [ "text", " " ],
[ "constant.numeric", "30" ], [ "constant.numeric", "30" ],
[ "text", " " ], [ "text", " " ],
[ "keyword.operator", "&" ], [ "keyword.operator", "&&" ],
[ "keyword.operator", "&" ],
[ "text", " " ], [ "text", " " ],
[ "identifier", "timevalue" ], [ "identifier", "timevalue" ],
[ "text", " " ], [ "text", " " ],
@ -635,11 +633,11 @@
"state": "start", "state": "start",
"data": [ "data": [
[ "text", " " ], [ "text", " " ],
[ "paren.rparen", "]" ], [ "paren.rparen", "]]" ],
[ "paren.rparen", "]" ], [ "keyword.operator", ">" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "script" ], [ "meta.tag.tag-name", "script" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -724,7 +722,7 @@
[ "entity.other.attribute-name", "id" ], [ "entity.other.attribute-name", "id" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"rect3590\"" ], [ "string", "\"rect3590\"" ],
[ "meta.tag", "/>" ] [ "meta.tag.r", "/>" ]
] ]
}, },
{ {
@ -782,7 +780,7 @@
[ "entity.other.attribute-name", "display" ], [ "entity.other.attribute-name", "display" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"none\"" ], [ "string", "\"none\"" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -791,7 +789,7 @@
[ "text", " Hickory," ], [ "text", " Hickory," ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "text" ], [ "meta.tag.tag-name", "text" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -845,7 +843,7 @@
[ "entity.other.attribute-name", "display" ], [ "entity.other.attribute-name", "display" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"none\"" ], [ "string", "\"none\"" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -854,7 +852,7 @@
[ "text", " dickory," ], [ "text", " dickory," ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "text" ], [ "meta.tag.tag-name", "text" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -908,7 +906,7 @@
[ "entity.other.attribute-name", "display" ], [ "entity.other.attribute-name", "display" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"none\"" ], [ "string", "\"none\"" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -917,7 +915,7 @@
[ "text", " dock!" ], [ "text", " dock!" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "text" ], [ "meta.tag.tag-name", "text" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -925,7 +923,7 @@
"data": [ "data": [
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "svg" ], [ "meta.tag.tag-name", "svg" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
} }
] ]

View file

@ -41,7 +41,7 @@
[ "paren.rparen", "}" ], [ "paren.rparen", "}" ],
[ "text", " " ], [ "text", " " ],
[ "variable.instancce", "$" ], [ "variable.instancce", "$" ],
[ "variable.instancce", "graph" ], [ "variable.instance", "graph" ],
[ "text", " " ], [ "text", " " ],
[ "paren.lparen", "{" ] [ "paren.lparen", "{" ]
] ]
@ -57,7 +57,7 @@
[ "identifier", "dist" ], [ "identifier", "dist" ],
[ "text", " " ], [ "text", " " ],
[ "variable.instancce", "$" ], [ "variable.instancce", "$" ],
[ "variable.instancce", "vertex" ], [ "variable.instance", "vertex" ],
[ "text", " " ], [ "text", " " ],
[ "identifier", "Inf" ] [ "identifier", "Inf" ]
] ]
@ -73,7 +73,7 @@
[ "identifier", "path" ], [ "identifier", "path" ],
[ "text", " " ], [ "text", " " ],
[ "variable.instancce", "$" ], [ "variable.instancce", "$" ],
[ "variable.instancce", "vertex" ], [ "variable.instance", "vertex" ],
[ "text", " " ], [ "text", " " ],
[ "paren.lparen", "{" ], [ "paren.lparen", "{" ],
[ "text", "}" ] [ "text", "}" ]
@ -96,7 +96,7 @@
[ "identifier", "dist" ], [ "identifier", "dist" ],
[ "text", " " ], [ "text", " " ],
[ "variable.instancce", "$" ], [ "variable.instancce", "$" ],
[ "variable.instancce", "origin" ], [ "variable.instance", "origin" ],
[ "text", " 0" ] [ "text", " 0" ]
] ]
}, },
@ -111,13 +111,13 @@
[ "identifier", "path" ], [ "identifier", "path" ],
[ "text", " " ], [ "text", " " ],
[ "variable.instancce", "$" ], [ "variable.instancce", "$" ],
[ "variable.instancce", "origin" ], [ "variable.instance", "origin" ],
[ "text", " " ], [ "text", " " ],
[ "paren.lparen", "[" ], [ "paren.lparen", "[" ],
[ "keyword", "list" ], [ "keyword", "list" ],
[ "text", " " ], [ "text", " " ],
[ "variable.instancce", "$" ], [ "variable.instancce", "$" ],
[ "variable.instancce", "origin" ], [ "variable.instance", "origin" ],
[ "paren.rparen", "]" ] [ "paren.rparen", "]" ]
] ]
}, },
@ -140,9 +140,8 @@
[ "identifier", "size" ], [ "identifier", "size" ],
[ "text", " " ], [ "text", " " ],
[ "variable.instancce", "$" ], [ "variable.instancce", "$" ],
[ "variable.instancce", "graph" ], [ "variable.instance", "graph" ],
[ "paren.rparen", "]" ], [ "paren.rparen", "]}" ],
[ "paren.rparen", "}" ],
[ "text", " " ], [ "text", " " ],
[ "paren.lparen", "{" ] [ "paren.lparen", "{" ]
] ]
@ -180,7 +179,7 @@
[ "paren.rparen", "}" ], [ "paren.rparen", "}" ],
[ "text", " " ], [ "text", " " ],
[ "variable.instancce", "$" ], [ "variable.instancce", "$" ],
[ "variable.instancce", "graph" ], [ "variable.instance", "graph" ],
[ "text", " " ], [ "text", " " ],
[ "paren.lparen", "{" ] [ "paren.lparen", "{" ]
] ]
@ -193,7 +192,7 @@
[ "text", " " ], [ "text", " " ],
[ "paren.lparen", "{" ], [ "paren.lparen", "{" ],
[ "variable.instancce", "$" ], [ "variable.instancce", "$" ],
[ "variable.instancce", "d" ], [ "variable.instance", "d" ],
[ "text", " " ], [ "text", " " ],
[ "support.function", ">" ], [ "support.function", ">" ],
[ "text", " " ], [ "text", " " ],
@ -208,13 +207,11 @@
[ "identifier", "get" ], [ "identifier", "get" ],
[ "text", " " ], [ "text", " " ],
[ "variable.instancce", "$" ], [ "variable.instancce", "$" ],
[ "variable.instancce", "dist" ], [ "variable.instance", "dist" ],
[ "text", " " ], [ "text", " " ],
[ "variable.instancce", "$" ], [ "variable.instancce", "$" ],
[ "variable.instancce", "uu" ], [ "variable.instance", "uu" ],
[ "paren.rparen", "]" ], [ "paren.rparen", "]]}" ],
[ "paren.rparen", "]" ],
[ "paren.rparen", "}" ],
[ "text", " " ], [ "text", " " ],
[ "paren.lparen", "{" ] [ "paren.lparen", "{" ]
] ]
@ -228,7 +225,7 @@
[ "identifier", "u" ], [ "identifier", "u" ],
[ "text", " " ], [ "text", " " ],
[ "variable.instancce", "$" ], [ "variable.instancce", "$" ],
[ "variable.instancce", "uu" ] [ "variable.instance", "uu" ]
] ]
}, },
{ {
@ -240,7 +237,7 @@
[ "identifier", "d" ], [ "identifier", "d" ],
[ "text", " " ], [ "text", " " ],
[ "variable.instancce", "$" ], [ "variable.instancce", "$" ],
[ "variable.instancce", "dd" ] [ "variable.instance", "dd" ]
] ]
}, },
{ {
@ -276,7 +273,7 @@
[ "text", " " ], [ "text", " " ],
[ "paren.lparen", "{" ], [ "paren.lparen", "{" ],
[ "variable.instancce", "$" ], [ "variable.instancce", "$" ],
[ "variable.instancce", "d" ], [ "variable.instance", "d" ],
[ "text", " " ], [ "text", " " ],
[ "support.function", "==" ], [ "support.function", "==" ],
[ "text", " " ], [ "text", " " ],
@ -325,10 +322,10 @@
[ "identifier", "get" ], [ "identifier", "get" ],
[ "text", " " ], [ "text", " " ],
[ "variable.instancce", "$" ], [ "variable.instancce", "$" ],
[ "variable.instancce", "graph" ], [ "variable.instance", "graph" ],
[ "text", " " ], [ "text", " " ],
[ "variable.instancce", "$" ], [ "variable.instancce", "$" ],
[ "variable.instancce", "u" ], [ "variable.instance", "u" ],
[ "paren.rparen", "]" ], [ "paren.rparen", "]" ],
[ "text", " " ], [ "text", " " ],
[ "paren.lparen", "{" ] [ "paren.lparen", "{" ]
@ -347,12 +344,11 @@
[ "identifier", "exists" ], [ "identifier", "exists" ],
[ "text", " " ], [ "text", " " ],
[ "variable.instancce", "$" ], [ "variable.instancce", "$" ],
[ "variable.instancce", "graph" ], [ "variable.instance", "graph" ],
[ "text", " " ], [ "text", " " ],
[ "variable.instancce", "$" ], [ "variable.instancce", "$" ],
[ "variable.instancce", "v" ], [ "variable.instance", "v" ],
[ "paren.rparen", "]" ], [ "paren.rparen", "]}" ],
[ "paren.rparen", "}" ],
[ "text", " " ], [ "text", " " ],
[ "paren.lparen", "{" ] [ "paren.lparen", "{" ]
] ]
@ -370,14 +366,13 @@
[ "text", " " ], [ "text", " " ],
[ "paren.lparen", "{" ], [ "paren.lparen", "{" ],
[ "variable.instancce", "$" ], [ "variable.instancce", "$" ],
[ "variable.instancce", "d" ], [ "variable.instance", "d" ],
[ "text", " " ], [ "text", " " ],
[ "support.function", "+" ], [ "support.function", "+" ],
[ "text", " " ], [ "text", " " ],
[ "variable.instancce", "$" ], [ "variable.instancce", "$" ],
[ "variable.instancce", "dd" ], [ "variable.instance", "dd" ],
[ "paren.rparen", "}" ], [ "paren.rparen", "}]" ]
[ "paren.rparen", "]" ]
] ]
}, },
{ {
@ -388,7 +383,7 @@
[ "text", " " ], [ "text", " " ],
[ "paren.lparen", "{" ], [ "paren.lparen", "{" ],
[ "variable.instancce", "$" ], [ "variable.instancce", "$" ],
[ "variable.instancce", "alt" ], [ "variable.instance", "alt" ],
[ "text", " " ], [ "text", " " ],
[ "support.function", "<" ], [ "support.function", "<" ],
[ "text", " " ], [ "text", " " ],
@ -398,12 +393,11 @@
[ "identifier", "get" ], [ "identifier", "get" ],
[ "text", " " ], [ "text", " " ],
[ "variable.instancce", "$" ], [ "variable.instancce", "$" ],
[ "variable.instancce", "dist" ], [ "variable.instance", "dist" ],
[ "text", " " ], [ "text", " " ],
[ "variable.instancce", "$" ], [ "variable.instancce", "$" ],
[ "variable.instancce", "v" ], [ "variable.instance", "v" ],
[ "paren.rparen", "]" ], [ "paren.rparen", "]}" ],
[ "paren.rparen", "}" ],
[ "text", " " ], [ "text", " " ],
[ "paren.lparen", "{" ] [ "paren.lparen", "{" ]
] ]
@ -419,10 +413,10 @@
[ "identifier", "dist" ], [ "identifier", "dist" ],
[ "text", " " ], [ "text", " " ],
[ "variable.instancce", "$" ], [ "variable.instancce", "$" ],
[ "variable.instancce", "v" ], [ "variable.instance", "v" ],
[ "text", " " ], [ "text", " " ],
[ "variable.instancce", "$" ], [ "variable.instancce", "$" ],
[ "variable.instancce", "alt" ] [ "variable.instance", "alt" ]
] ]
}, },
{ {
@ -436,7 +430,7 @@
[ "identifier", "path" ], [ "identifier", "path" ],
[ "text", " " ], [ "text", " " ],
[ "variable.instancce", "$" ], [ "variable.instancce", "$" ],
[ "variable.instancce", "v" ], [ "variable.instance", "v" ],
[ "text", " " ], [ "text", " " ],
[ "paren.lparen", "[" ], [ "paren.lparen", "[" ],
[ "keyword", "list" ], [ "keyword", "list" ],
@ -448,14 +442,14 @@
[ "identifier", "get" ], [ "identifier", "get" ],
[ "text", " " ], [ "text", " " ],
[ "variable.instancce", "$" ], [ "variable.instancce", "$" ],
[ "variable.instancce", "path" ], [ "variable.instance", "path" ],
[ "text", " " ], [ "text", " " ],
[ "variable.instancce", "$" ], [ "variable.instancce", "$" ],
[ "variable.instancce", "u" ], [ "variable.instance", "u" ],
[ "paren.rparen", "]" ], [ "paren.rparen", "]" ],
[ "text", " " ], [ "text", " " ],
[ "variable.instancce", "$" ], [ "variable.instancce", "$" ],
[ "variable.instancce", "v" ], [ "variable.instance", "v" ],
[ "paren.rparen", "]" ] [ "paren.rparen", "]" ]
] ]
}, },
@ -501,7 +495,7 @@
[ "identifier", "graph" ], [ "identifier", "graph" ],
[ "text", " " ], [ "text", " " ],
[ "variable.instancce", "$" ], [ "variable.instancce", "$" ],
[ "variable.instancce", "u" ] [ "variable.instance", "u" ]
] ]
}, },
{ {
@ -520,10 +514,10 @@
[ "keyword", "list" ], [ "keyword", "list" ],
[ "text", " " ], [ "text", " " ],
[ "variable.instancce", "$" ], [ "variable.instancce", "$" ],
[ "variable.instancce", "dist" ], [ "variable.instance", "dist" ],
[ "text", " " ], [ "text", " " ],
[ "variable.instancce", "$" ], [ "variable.instancce", "$" ],
[ "variable.instancce", "path" ], [ "variable.instance", "path" ],
[ "paren.rparen", "]" ] [ "paren.rparen", "]" ]
] ]
}, },

View file

@ -0,0 +1,189 @@
[
{
"state": "start",
"data": [
[ "text", "The quadratic formula is $$-b " ],
[ "keyword", "\\pm" ],
[ "text", " " ],
[ "keyword", "\\sqrt" ],
[ "paren.keyword.operator", "{" ],
[ "text", "b^2 - 4ac" ],
[ "paren.keyword.operator", "}" ],
[ "text", " " ],
[ "keyword", "\\over" ],
[ "text", " 2a$$" ]
]
},
{
"state": "start",
"data": [
[ "keyword", "\\bye" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "keyword", "\\makeatletter" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "keyword", "\\newcommand" ],
[ "paren.keyword.operator", "{" ],
[ "keyword", "\\be" ],
[ "paren.keyword.operator", "}{" ],
[ "comment", "%" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "keyword", "\\begingroup" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "comment", "% \\setlength{\\arraycolsep}{2pt}" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "keyword", "\\eqnarray" ],
[ "comment", "%" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "keyword", "\\@" ],
[ "text", "ifstar" ],
[ "paren.keyword.operator", "{" ],
[ "keyword", "\\nonumber" ],
[ "paren.keyword.operator", "}{}" ],
[ "comment", "%" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "paren.keyword.operator", "}" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "keyword", "\\newcommand" ],
[ "paren.keyword.operator", "{" ],
[ "keyword", "\\ee" ],
[ "paren.keyword.operator", "}{" ],
[ "keyword", "\\endeqnarray\\endgroup" ],
[ "paren.keyword.operator", "}" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "keyword", "\\makeatother" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "keyword", "\\begin" ],
[ "paren.keyword.operator", "{" ],
[ "nospell.text", "equation" ],
[ "paren.keyword.operator", "}" ]
]
},
{
"state": "start",
"data": [
[ "text", " x=" ],
[ "keyword", "\\left\\" ],
[ "paren.keyword.operator", "{" ],
[ "text", " " ],
[ "keyword", "\\begin" ],
[ "paren.keyword.operator", "{" ],
[ "nospell.text", "array" ],
[ "paren.keyword.operator", "}{" ],
[ "text", "cl" ],
[ "paren.keyword.operator", "}" ]
]
},
{
"state": "start",
"data": [
[ "text", " 0 & " ],
[ "keyword", "\\textrm" ],
[ "paren.keyword.operator", "{" ],
[ "text", "if " ],
[ "paren.keyword.operator", "}" ],
[ "text", "A=" ],
[ "keyword", "\\ldots\\\\" ]
]
},
{
"state": "start",
"data": [
[ "text", " 1 & " ],
[ "keyword", "\\textrm" ],
[ "paren.keyword.operator", "{" ],
[ "text", "if " ],
[ "paren.keyword.operator", "}" ],
[ "text", "B=" ],
[ "keyword", "\\ldots\\\\" ]
]
},
{
"state": "start",
"data": [
[ "text", " x & " ],
[ "keyword", "\\textrm" ],
[ "paren.keyword.operator", "{" ],
[ "text", "this runs with as much text as you like, but without an raggeright text" ]
]
},
{
"state": "start",
"data": [
[ "text", "." ],
[ "paren.keyword.operator", "}" ],
[ "keyword", "\\end" ],
[ "paren.keyword.operator", "{" ],
[ "nospell.text", "array" ],
[ "paren.keyword.operator", "}" ],
[ "keyword", "\\right" ],
[ "text", "." ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "keyword", "\\end" ],
[ "paren.keyword.operator", "{" ],
[ "nospell.text", "equation" ],
[ "paren.keyword.operator", "}" ]
]
}
]

View file

@ -91,8 +91,7 @@
[ "string", "two" ], [ "string", "two" ],
[ "text", " " ], [ "text", " " ],
[ "string", "three" ], [ "string", "three" ],
[ "keyword", ")" ], [ "keyword", "). " ],
[ "keyword", ". " ],
[ "text", "This is a paragraph with classes" ] [ "text", "This is a paragraph with classes" ]
] ]
}, },
@ -104,11 +103,9 @@
"state": "start", "state": "start",
"data": [ "data": [
[ "markup.heading", "p" ], [ "markup.heading", "p" ],
[ "keyword", "(" ], [ "keyword", "(#" ],
[ "keyword", "#" ],
[ "string", "id" ], [ "string", "id" ],
[ "keyword", ")" ], [ "keyword", "). " ],
[ "keyword", ". " ],
[ "text", "(one with an id)" ] [ "text", "(one with an id)" ]
] ]
}, },
@ -128,8 +125,7 @@
[ "string", "three" ], [ "string", "three" ],
[ "keyword", "#" ], [ "keyword", "#" ],
[ "string", "my_id" ], [ "string", "my_id" ],
[ "keyword", ")" ], [ "keyword", "). " ],
[ "keyword", ". " ],
[ "text", "..classes + id" ] [ "text", "..classes + id" ]
] ]
}, },

View file

@ -0,0 +1,765 @@
[
{
"state": "regex_allowed",
"data": [
[ "keyword.operator.ts", "class" ],
[ "text", " " ],
[ "identifier", "Greeter" ],
[ "text", " " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "regex_allowed",
"data": [
[ "text", "\t" ],
[ "variable.parameter.function.ts", "greeting" ],
[ "text", ": " ],
[ "variable.parameter.function.ts", "string" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "regex_allowed",
"data": [
[ "text", "\t" ],
[ "keyword.operator.ts", "constructor" ],
[ "text", " " ],
[ "paren.lparen", "(" ],
[ "variable.parameter.function.ts", "message" ],
[ "text", ": " ],
[ "variable.parameter.function.ts", "string" ],
[ "paren.rparen", ")" ],
[ "text", " " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "regex_allowed",
"data": [
[ "text", "\t\t" ],
[ "storage.type.variable.ts", "this." ],
[ "identifier", "greeting" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "identifier", "message" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "start",
"data": [
[ "text", "\t" ],
[ "paren.rparen", "}" ]
]
},
{
"state": "regex_allowed",
"data": [
[ "text", "\t" ],
[ "entity.name.function.ts", "greet" ],
[ "paren.lparen", "(" ],
[ "paren.rparen", ")" ],
[ "text", " " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "regex_allowed",
"data": [
[ "text", "\t\t" ],
[ "keyword", "return" ],
[ "text", " " ],
[ "string", "\"Hello, \"" ],
[ "text", " " ],
[ "keyword.operator", "+" ],
[ "text", " " ],
[ "storage.type.variable.ts", "this." ],
[ "identifier", "greeting" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "start",
"data": [
[ "text", "\t" ],
[ "paren.rparen", "}" ]
]
},
{
"state": "start",
"data": [
[ "paren.rparen", "}" ],
[ "text", " " ]
]
},
{
"state": "start",
"data": []
},
{
"state": "regex_allowed",
"data": [
[ "storage.type", "var" ],
[ "text", " " ],
[ "identifier", "greeter" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "keyword", "new" ],
[ "text", " " ],
[ "identifier", "Greeter" ],
[ "paren.lparen", "(" ],
[ "string", "\"world\"" ],
[ "paren.rparen", ")" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "storage.type", "var" ],
[ "text", " " ],
[ "identifier", "button" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "variable.language", "document" ],
[ "punctuation.operator", "." ],
[ "support.function.dom", "createElement" ],
[ "paren.lparen", "(" ],
[ "string", "'button'" ],
[ "paren.rparen", ")" ]
]
},
{
"state": "start",
"data": [
[ "identifier", "button" ],
[ "punctuation.operator", "." ],
[ "identifier", "innerText" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "string", "\"Say Hello\"" ]
]
},
{
"state": "regex_allowed",
"data": [
[ "storage.type", "button" ],
[ "punctuation.operator", "." ],
[ "entity.name.function", "onclick" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "storage.type", "function" ],
[ "paren.lparen", "(" ],
[ "paren.rparen", ")" ],
[ "text", " " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "start",
"data": [
[ "text", "\t" ],
[ "support.function", "alert" ],
[ "paren.lparen", "(" ],
[ "entity.name.function.ts", "greeter.greet" ],
[ "paren.lparen", "(" ],
[ "paren.rparen", "))" ]
]
},
{
"state": "start",
"data": [
[ "paren.rparen", "}" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "variable.language", "document" ],
[ "punctuation.operator", "." ],
[ "identifier", "body" ],
[ "punctuation.operator", "." ],
[ "support.function.dom", "appendChild" ],
[ "paren.lparen", "(" ],
[ "identifier", "button" ],
[ "paren.rparen", ")" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "regex_allowed",
"data": [
[ "keyword.operator.ts", "class" ],
[ "text", " " ],
[ "identifier", "Snake" ],
[ "text", " " ],
[ "keyword.operator.ts", "extends" ],
[ "text", " " ],
[ "identifier", "Animal" ],
[ "text", " " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "regex_allowed",
"data": [
[ "text", " " ],
[ "entity.name.function.ts", "move" ],
[ "paren.lparen", "(" ],
[ "paren.rparen", ")" ],
[ "text", " " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "regex_allowed",
"data": [
[ "text", " " ],
[ "support.function", "alert" ],
[ "paren.lparen", "(" ],
[ "string", "\"Slithering...\"" ],
[ "paren.rparen", ")" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "regex_allowed",
"data": [
[ "text", " " ],
[ "storage.type.variable.ts", "super" ],
[ "text", "(" ],
[ "keyword.other.ts", "5" ],
[ "text", ")" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "paren.rparen", "}" ]
]
},
{
"state": "start",
"data": [
[ "paren.rparen", "}" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "regex_allowed",
"data": [
[ "keyword.operator.ts", "class" ],
[ "text", " " ],
[ "identifier", "Horse" ],
[ "text", " " ],
[ "keyword.operator.ts", "extends" ],
[ "text", " " ],
[ "identifier", "Animal" ],
[ "text", " " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "regex_allowed",
"data": [
[ "text", " " ],
[ "entity.name.function.ts", "move" ],
[ "paren.lparen", "(" ],
[ "paren.rparen", ")" ],
[ "text", " " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "regex_allowed",
"data": [
[ "text", " " ],
[ "support.function", "alert" ],
[ "paren.lparen", "(" ],
[ "string", "\"Galloping...\"" ],
[ "paren.rparen", ")" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "regex_allowed",
"data": [
[ "text", " " ],
[ "keyword.operator.ts", "super" ],
[ "punctuation.operator", "." ],
[ "identifier", "move" ],
[ "paren.lparen", "(" ],
[ "constant.numeric", "45" ],
[ "paren.rparen", ")" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "paren.rparen", "}" ]
]
},
{
"state": "start",
"data": [
[ "paren.rparen", "}" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "start",
"data": [
[ "keyword.operator.ts", "module" ],
[ "text", " " ],
[ "variable.parameter.function.ts", "Sayings" ],
[ "text", " {" ]
]
},
{
"state": "regex_allowed",
"data": [
[ "text", " " ],
[ "keyword.operator.ts", "export" ],
[ "text", " " ],
[ "keyword.operator.ts", "class" ],
[ "text", " " ],
[ "identifier", "Greeter" ],
[ "text", " " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "regex_allowed",
"data": [
[ "text", " " ],
[ "variable.parameter.function.ts", "greeting" ],
[ "text", ": " ],
[ "variable.parameter.function.ts", "string" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "regex_allowed",
"data": [
[ "text", " " ],
[ "keyword.operator.ts", "constructor" ],
[ "text", " " ],
[ "paren.lparen", "(" ],
[ "variable.parameter.function.ts", "message" ],
[ "text", ": " ],
[ "variable.parameter.function.ts", "string" ],
[ "paren.rparen", ")" ],
[ "text", " " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "regex_allowed",
"data": [
[ "text", " " ],
[ "storage.type.variable.ts", "this." ],
[ "identifier", "greeting" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "identifier", "message" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "paren.rparen", "}" ]
]
},
{
"state": "regex_allowed",
"data": [
[ "text", " " ],
[ "entity.name.function.ts", "greet" ],
[ "paren.lparen", "(" ],
[ "paren.rparen", ")" ],
[ "text", " " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "regex_allowed",
"data": [
[ "text", " " ],
[ "keyword", "return" ],
[ "text", " " ],
[ "string", "\"Hello, \"" ],
[ "text", " " ],
[ "keyword.operator", "+" ],
[ "text", " " ],
[ "storage.type.variable.ts", "this." ],
[ "identifier", "greeting" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "paren.rparen", "}" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "paren.rparen", "}" ]
]
},
{
"state": "start",
"data": [
[ "paren.rparen", "}" ]
]
},
{
"state": "start",
"data": [
[ "keyword.operator.ts", "module" ],
[ "text", " " ],
[ "variable.parameter.function.ts", "Mankala" ],
[ "text", " {" ]
]
},
{
"state": "regex_allowed",
"data": [
[ "text", " " ],
[ "keyword.operator.ts", "export" ],
[ "text", " " ],
[ "keyword.operator.ts", "class" ],
[ "text", " " ],
[ "identifier", "Features" ],
[ "text", " " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "regex_allowed",
"data": [
[ "text", " " ],
[ "keyword.operator.ts", "public" ],
[ "text", " " ],
[ "identifier", "turnContinues" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "constant.language.boolean", "false" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "regex_allowed",
"data": [
[ "text", " " ],
[ "keyword.operator.ts", "public" ],
[ "text", " " ],
[ "identifier", "seedStoredCount" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "constant.numeric", "0" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "regex_allowed",
"data": [
[ "text", " " ],
[ "keyword.operator.ts", "public" ],
[ "text", " " ],
[ "identifier", "capturedCount" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "constant.numeric", "0" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "regex_allowed",
"data": [
[ "text", " " ],
[ "keyword.operator.ts", "public" ],
[ "text", " " ],
[ "identifier", "spaceCaptured" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "identifier", "NoSpace" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "regex_allowed",
"data": [
[ "text", " " ],
[ "keyword.operator.ts", "public" ],
[ "text", " " ],
[ "entity.name.function.ts", "clear" ],
[ "paren.lparen", "(" ],
[ "paren.rparen", ")" ],
[ "text", " " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "regex_allowed",
"data": [
[ "text", " " ],
[ "storage.type.variable.ts", "this." ],
[ "identifier", "turnContinues" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "constant.language.boolean", "false" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "regex_allowed",
"data": [
[ "text", " " ],
[ "storage.type.variable.ts", "this." ],
[ "identifier", "seedStoredCount" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "constant.numeric", "0" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "regex_allowed",
"data": [
[ "text", " " ],
[ "storage.type.variable.ts", "this." ],
[ "identifier", "capturedCount" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "constant.numeric", "0" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "regex_allowed",
"data": [
[ "text", " " ],
[ "storage.type.variable.ts", "this." ],
[ "identifier", "spaceCaptured" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "identifier", "NoSpace" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "paren.rparen", "}" ]
]
},
{
"state": "start",
"data": []
},
{
"state": "regex_allowed",
"data": [
[ "text", " " ],
[ "keyword.operator.ts", "public" ],
[ "text", " " ],
[ "entity.name.function.ts", "toString" ],
[ "paren.lparen", "(" ],
[ "paren.rparen", ")" ],
[ "text", " " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "regex_allowed",
"data": [
[ "text", " " ],
[ "storage.type", "var" ],
[ "text", " " ],
[ "identifier", "stringBuilder" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "string", "\"\"" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "regex_allowed",
"data": [
[ "text", " " ],
[ "keyword", "if" ],
[ "text", " " ],
[ "paren.lparen", "(" ],
[ "storage.type.variable.ts", "this." ],
[ "identifier", "turnContinues" ],
[ "paren.rparen", ")" ],
[ "text", " " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "regex_allowed",
"data": [
[ "text", " " ],
[ "identifier", "stringBuilder" ],
[ "text", " " ],
[ "keyword.operator", "+=" ],
[ "text", " " ],
[ "string", "\" turn continues,\"" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "paren.rparen", "}" ]
]
},
{
"state": "regex_allowed",
"data": [
[ "text", " " ],
[ "identifier", "stringBuilder" ],
[ "text", " " ],
[ "keyword.operator", "+=" ],
[ "text", " " ],
[ "string", "\" stores \"" ],
[ "text", " " ],
[ "keyword.operator", "+" ],
[ "text", " " ],
[ "storage.type.variable.ts", "this." ],
[ "identifier", "seedStoredCount" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "regex_allowed",
"data": [
[ "text", " " ],
[ "keyword", "if" ],
[ "text", " " ],
[ "paren.lparen", "(" ],
[ "storage.type.variable.ts", "this." ],
[ "identifier", "capturedCount" ],
[ "text", " " ],
[ "keyword.operator", ">" ],
[ "text", " " ],
[ "constant.numeric", "0" ],
[ "paren.rparen", ")" ],
[ "text", " " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "regex_allowed",
"data": [
[ "text", " " ],
[ "identifier", "stringBuilder" ],
[ "text", " " ],
[ "keyword.operator", "+=" ],
[ "text", " " ],
[ "string", "\" captures \"" ],
[ "text", " " ],
[ "keyword.operator", "+" ],
[ "text", " " ],
[ "storage.type.variable.ts", "this." ],
[ "identifier", "capturedCount" ],
[ "text", " " ],
[ "keyword.operator", "+" ],
[ "text", " " ],
[ "string", "\" from space \"" ],
[ "text", " " ],
[ "keyword.operator", "+" ],
[ "text", " " ],
[ "storage.type.variable.ts", "this." ],
[ "identifier", "spaceCaptured" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "paren.rparen", "}" ]
]
},
{
"state": "regex_allowed",
"data": [
[ "text", " " ],
[ "keyword", "return" ],
[ "text", " " ],
[ "identifier", "stringBuilder" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "paren.rparen", "}" ]
]
},
{
"state": "start",
"data": [
[ "text", " " ],
[ "paren.rparen", "}" ]
]
},
{
"state": "start",
"data": [
[ "paren.rparen", "}" ]
]
}
]

View file

@ -31,7 +31,7 @@
[ "entity.other.attribute-name", "yahoo:lang" ], [ "entity.other.attribute-name", "yahoo:lang" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"en-US\"" ], [ "string", "\"en-US\"" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -40,7 +40,7 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "diagnostics" ], [ "meta.tag.tag-name", "diagnostics" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -49,11 +49,11 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "publiclyCallable" ], [ "meta.tag.tag-name", "publiclyCallable" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "true" ], [ "text", "true" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "publiclyCallable" ], [ "meta.tag.tag-name", "publiclyCallable" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -74,11 +74,11 @@
[ "entity.other.attribute-name", "execution-time" ], [ "entity.other.attribute-name", "execution-time" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"25\"" ], [ "string", "\"25\"" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "<![CDATA[http://where.yahooapis.com/v1/continents;start=0;count=10]]>" ], [ "text", "<![CDATA[http://where.yahooapis.com/v1/continents;start=0;count=10]]>" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "url" ], [ "meta.tag.tag-name", "url" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -87,11 +87,11 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "user-time" ], [ "meta.tag.tag-name", "user-time" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "26" ], [ "text", "26" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "user-time" ], [ "meta.tag.tag-name", "user-time" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -100,11 +100,11 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "service-time" ], [ "meta.tag.tag-name", "service-time" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "25" ], [ "text", "25" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "service-time" ], [ "meta.tag.tag-name", "service-time" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -113,11 +113,11 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "build-version" ], [ "meta.tag.tag-name", "build-version" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "21978" ], [ "text", "21978" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "build-version" ], [ "meta.tag.tag-name", "build-version" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -126,7 +126,7 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "diagnostics" ], [ "meta.tag.tag-name", "diagnostics" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", " " ] [ "text", " " ]
] ]
}, },
@ -136,7 +136,7 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "results" ], [ "meta.tag.tag-name", "results" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -162,7 +162,7 @@
[ "entity.other.attribute-name", "yahoo:uri" ], [ "entity.other.attribute-name", "yahoo:uri" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"http://where.yahooapis.com/v1/place/24865670\"" ], [ "string", "\"http://where.yahooapis.com/v1/place/24865670\"" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -171,11 +171,11 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "woeid" ], [ "meta.tag.tag-name", "woeid" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "24865670" ], [ "text", "24865670" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "woeid" ], [ "meta.tag.tag-name", "woeid" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -188,11 +188,11 @@
[ "entity.other.attribute-name", "code" ], [ "entity.other.attribute-name", "code" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"29\"" ], [ "string", "\"29\"" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "Continent" ], [ "text", "Continent" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "placeTypeName" ], [ "meta.tag.tag-name", "placeTypeName" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -201,11 +201,11 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "name" ], [ "meta.tag.tag-name", "name" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "Africa" ], [ "text", "Africa" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "name" ], [ "meta.tag.tag-name", "name" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -214,7 +214,7 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "place" ], [ "meta.tag.tag-name", "place" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -240,7 +240,7 @@
[ "entity.other.attribute-name", "yahoo:uri" ], [ "entity.other.attribute-name", "yahoo:uri" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"http://where.yahooapis.com/v1/place/24865675\"" ], [ "string", "\"http://where.yahooapis.com/v1/place/24865675\"" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -249,11 +249,11 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "woeid" ], [ "meta.tag.tag-name", "woeid" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "24865675" ], [ "text", "24865675" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "woeid" ], [ "meta.tag.tag-name", "woeid" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -266,11 +266,11 @@
[ "entity.other.attribute-name", "code" ], [ "entity.other.attribute-name", "code" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"29\"" ], [ "string", "\"29\"" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "Continent" ], [ "text", "Continent" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "placeTypeName" ], [ "meta.tag.tag-name", "placeTypeName" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -279,11 +279,11 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "name" ], [ "meta.tag.tag-name", "name" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "Europe" ], [ "text", "Europe" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "name" ], [ "meta.tag.tag-name", "name" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -292,7 +292,7 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "place" ], [ "meta.tag.tag-name", "place" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -318,7 +318,7 @@
[ "entity.other.attribute-name", "yahoo:uri" ], [ "entity.other.attribute-name", "yahoo:uri" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"http://where.yahooapis.com/v1/place/24865673\"" ], [ "string", "\"http://where.yahooapis.com/v1/place/24865673\"" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -327,11 +327,11 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "woeid" ], [ "meta.tag.tag-name", "woeid" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "24865673" ], [ "text", "24865673" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "woeid" ], [ "meta.tag.tag-name", "woeid" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -344,11 +344,11 @@
[ "entity.other.attribute-name", "code" ], [ "entity.other.attribute-name", "code" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"29\"" ], [ "string", "\"29\"" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "Continent" ], [ "text", "Continent" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "placeTypeName" ], [ "meta.tag.tag-name", "placeTypeName" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -357,11 +357,11 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "name" ], [ "meta.tag.tag-name", "name" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "South America" ], [ "text", "South America" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "name" ], [ "meta.tag.tag-name", "name" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -370,7 +370,7 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "place" ], [ "meta.tag.tag-name", "place" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -396,7 +396,7 @@
[ "entity.other.attribute-name", "yahoo:uri" ], [ "entity.other.attribute-name", "yahoo:uri" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"http://where.yahooapis.com/v1/place/28289421\"" ], [ "string", "\"http://where.yahooapis.com/v1/place/28289421\"" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -405,11 +405,11 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "woeid" ], [ "meta.tag.tag-name", "woeid" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "28289421" ], [ "text", "28289421" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "woeid" ], [ "meta.tag.tag-name", "woeid" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -422,11 +422,11 @@
[ "entity.other.attribute-name", "code" ], [ "entity.other.attribute-name", "code" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"29\"" ], [ "string", "\"29\"" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "Continent" ], [ "text", "Continent" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "placeTypeName" ], [ "meta.tag.tag-name", "placeTypeName" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -435,11 +435,11 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "name" ], [ "meta.tag.tag-name", "name" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "Antarctic" ], [ "text", "Antarctic" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "name" ], [ "meta.tag.tag-name", "name" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -448,7 +448,7 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "place" ], [ "meta.tag.tag-name", "place" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -474,7 +474,7 @@
[ "entity.other.attribute-name", "yahoo:uri" ], [ "entity.other.attribute-name", "yahoo:uri" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"http://where.yahooapis.com/v1/place/24865671\"" ], [ "string", "\"http://where.yahooapis.com/v1/place/24865671\"" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -483,11 +483,11 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "woeid" ], [ "meta.tag.tag-name", "woeid" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "24865671" ], [ "text", "24865671" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "woeid" ], [ "meta.tag.tag-name", "woeid" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -500,11 +500,11 @@
[ "entity.other.attribute-name", "code" ], [ "entity.other.attribute-name", "code" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"29\"" ], [ "string", "\"29\"" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "Continent" ], [ "text", "Continent" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "placeTypeName" ], [ "meta.tag.tag-name", "placeTypeName" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -513,11 +513,11 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "name" ], [ "meta.tag.tag-name", "name" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "Asia" ], [ "text", "Asia" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "name" ], [ "meta.tag.tag-name", "name" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -526,7 +526,7 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "place" ], [ "meta.tag.tag-name", "place" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -552,7 +552,7 @@
[ "entity.other.attribute-name", "yahoo:uri" ], [ "entity.other.attribute-name", "yahoo:uri" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"http://where.yahooapis.com/v1/place/24865672\"" ], [ "string", "\"http://where.yahooapis.com/v1/place/24865672\"" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -561,11 +561,11 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "woeid" ], [ "meta.tag.tag-name", "woeid" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "24865672" ], [ "text", "24865672" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "woeid" ], [ "meta.tag.tag-name", "woeid" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -578,11 +578,11 @@
[ "entity.other.attribute-name", "code" ], [ "entity.other.attribute-name", "code" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"29\"" ], [ "string", "\"29\"" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "Continent" ], [ "text", "Continent" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "placeTypeName" ], [ "meta.tag.tag-name", "placeTypeName" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -591,11 +591,11 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "name" ], [ "meta.tag.tag-name", "name" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "North America" ], [ "text", "North America" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "name" ], [ "meta.tag.tag-name", "name" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -604,7 +604,7 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "place" ], [ "meta.tag.tag-name", "place" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -630,7 +630,7 @@
[ "entity.other.attribute-name", "yahoo:uri" ], [ "entity.other.attribute-name", "yahoo:uri" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"http://where.yahooapis.com/v1/place/55949070\"" ], [ "string", "\"http://where.yahooapis.com/v1/place/55949070\"" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -639,11 +639,11 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "woeid" ], [ "meta.tag.tag-name", "woeid" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "55949070" ], [ "text", "55949070" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "woeid" ], [ "meta.tag.tag-name", "woeid" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -656,11 +656,11 @@
[ "entity.other.attribute-name", "code" ], [ "entity.other.attribute-name", "code" ],
[ "keyword.operator", "=" ], [ "keyword.operator", "=" ],
[ "string", "\"29\"" ], [ "string", "\"29\"" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "Continent" ], [ "text", "Continent" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "placeTypeName" ], [ "meta.tag.tag-name", "placeTypeName" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -669,11 +669,11 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "<" ], [ "meta.tag", "<" ],
[ "meta.tag.tag-name", "name" ], [ "meta.tag.tag-name", "name" ],
[ "meta.tag", ">" ], [ "meta.tag.r", ">" ],
[ "text", "Australia" ], [ "text", "Australia" ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "name" ], [ "meta.tag.tag-name", "name" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -682,7 +682,7 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "place" ], [ "meta.tag.tag-name", "place" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -691,7 +691,7 @@
[ "text", " " ], [ "text", " " ],
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "results" ], [ "meta.tag.tag-name", "results" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
}, },
{ {
@ -699,7 +699,7 @@
"data": [ "data": [
[ "meta.tag", "</" ], [ "meta.tag", "</" ],
[ "meta.tag.tag-name", "query" ], [ "meta.tag.tag-name", "query" ],
[ "meta.tag", ">" ] [ "meta.tag.r", ">" ]
] ]
} }
] ]

View file

@ -14,46 +14,46 @@
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "comment", "---" ] [ "list.markup", "---" ]
] ]
}, },
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "identifier", "receipt:" ], [ "meta.tag", "receipt" ],
[ "text", " Oz-Ware Purchase Invoice" ] [ "keyword", ": " ],
[ "text", "Oz-Ware Purchase Invoice" ]
] ]
}, },
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "identifier", "date:" ], [ "meta.tag", "date" ],
[ "text", " " ], [ "keyword", ": " ],
[ "constant.numeric", "2007" ], [ "constant.numeric", "2007-08-06" ]
[ "constant.numeric", "-08" ],
[ "constant.numeric", "-06" ]
] ]
}, },
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "identifier", "customer:" ] [ "meta.tag", "customer" ],
[ "keyword", ":" ]
] ]
}, },
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "text", " " ], [ "meta.tag", " given" ],
[ "identifier", "given:" ], [ "keyword", ": " ],
[ "text", " Dorothy" ] [ "text", "Dorothy" ]
] ]
}, },
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "text", " " ], [ "meta.tag", " family" ],
[ "identifier", "family:" ], [ "keyword", ": " ],
[ "text", " Gale" ] [ "text", "Gale" ]
] ]
}, },
{ {
@ -63,24 +63,25 @@
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "identifier", "items:" ] [ "meta.tag", "items" ],
[ "keyword", ":" ]
] ]
}, },
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "text", " - " ], [ "list.markup", " - " ],
[ "identifier", "part_no:" ], [ "meta.tag", "part_no" ],
[ "text", " " ], [ "keyword", ": " ],
[ "string", "'A4786'" ] [ "string", "'A4786'" ]
] ]
}, },
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "text", " " ], [ "meta.tag", " descrip" ],
[ "identifier", "descrip:" ], [ "keyword", ": " ],
[ "text", " Water Bucket " ], [ "text", "Water Bucket " ],
[ "paren.lparen", "(" ], [ "paren.lparen", "(" ],
[ "text", "Filled" ], [ "text", "Filled" ],
[ "paren.rparen", ")" ] [ "paren.rparen", ")" ]
@ -89,18 +90,16 @@
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "text", " " ], [ "meta.tag", " price" ],
[ "identifier", "price:" ], [ "keyword", ": " ],
[ "text", " " ],
[ "constant.numeric", "1.47" ] [ "constant.numeric", "1.47" ]
] ]
}, },
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "text", " " ], [ "meta.tag", " quantity" ],
[ "identifier", "quantity:" ], [ "keyword", ": " ],
[ "text", " " ],
[ "constant.numeric", "4" ] [ "constant.numeric", "4" ]
] ]
}, },
@ -111,18 +110,18 @@
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "text", " - " ], [ "list.markup", " - " ],
[ "identifier", "part_no:" ], [ "meta.tag", "part_no" ],
[ "text", " " ], [ "keyword", ": " ],
[ "string", "'E1628'" ] [ "string", "'E1628'" ]
] ]
}, },
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "text", " " ], [ "meta.tag", " descrip" ],
[ "identifier", "descrip:" ], [ "keyword", ": " ],
[ "text", " High Heeled " ], [ "text", "High Heeled " ],
[ "string", "\"Ruby\"" ], [ "string", "\"Ruby\"" ],
[ "text", " Slippers" ] [ "text", " Slippers" ]
] ]
@ -130,27 +129,24 @@
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "text", " " ], [ "meta.tag", " size" ],
[ "identifier", "size:" ], [ "keyword", ": " ],
[ "text", " " ],
[ "constant.numeric", "8" ] [ "constant.numeric", "8" ]
] ]
}, },
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "text", " " ], [ "meta.tag", " price" ],
[ "identifier", "price:" ], [ "keyword", ": " ],
[ "text", " " ],
[ "constant.numeric", "100.27" ] [ "constant.numeric", "100.27" ]
] ]
}, },
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "text", " " ], [ "meta.tag", " quantity" ],
[ "identifier", "quantity:" ], [ "keyword", ": " ],
[ "text", " " ],
[ "constant.numeric", "1" ] [ "constant.numeric", "1" ]
] ]
}, },
@ -161,18 +157,16 @@
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "text", "bill-" ], [ "meta.tag", "bill-to" ],
[ "identifier", "to:" ], [ "keyword", ": " ],
[ "text", " " ], [ "constant.language", "&id001" ]
[ "variable", "&id001" ]
] ]
}, },
{ {
"state": "qqstring", "state": "qqstring",
"data": [ "data": [
[ "text", " " ], [ "meta.tag", " street" ],
[ "identifier", "street:" ], [ "keyword", ": " ],
[ "text", " " ],
[ "string", "|" ] [ "string", "|" ]
] ]
}, },
@ -191,17 +185,17 @@
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "text", " " ], [ "meta.tag", " city" ],
[ "identifier", "city:" ], [ "keyword", ": " ],
[ "text", " East Centerville" ] [ "text", "East Centerville" ]
] ]
}, },
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "text", " " ], [ "meta.tag", " state" ],
[ "identifier", "state:" ], [ "keyword", ": " ],
[ "text", " KS" ] [ "text", "KS" ]
] ]
}, },
{ {
@ -211,10 +205,9 @@
{ {
"state": "start", "state": "start",
"data": [ "data": [
[ "text", "ship-" ], [ "meta.tag", "ship-to" ],
[ "identifier", "to:" ], [ "keyword", ": " ],
[ "text", " " ], [ "constant.language", "*id001" ]
[ "variable", "*id001" ]
] ]
}, },
{ {
@ -224,8 +217,8 @@
{ {
"state": "qqstring", "state": "qqstring",
"data": [ "data": [
[ "identifier", "specialDelivery:" ], [ "meta.tag", "specialDelivery" ],
[ "text", " " ], [ "keyword", ": " ],
[ "string", ">" ] [ "string", ">" ]
] ]
}, },

View file

@ -117,13 +117,13 @@ var AbapHighlightRules = function() {
], ],
"qstring" : [ "qstring" : [
{token : "constant.language.escape", regex : "''"}, {token : "constant.language.escape", regex : "''"},
{token : "string", regex : "'", next : "start", merge : true}, {token : "string", regex : "'", next : "start"},
{token : "string", regex : ".|\w+", merge : true} {token : "string", regex : ".|\w+"}
], ],
"string" : [ "string" : [
{token : "constant.language.escape", regex : "``"}, {token : "constant.language.escape", regex : "``"},
{token : "string", regex : "`", next : "start", merge : true}, {token : "string", regex : "`", next : "start"},
{token : "string", regex : ".|\w+", merge : true} {token : "string", regex : ".|\w+"}
] ]
} }
}; };

View file

@ -96,9 +96,9 @@ var AsciidocHighlightRules = function() {
// any word // any word
{token: "text", regex: identifierRe}, {token: "text", regex: identifierRe},
{token: ["keyword", "string", "keyword"], {token: ["keyword", "string", "keyword"],
regex: /(<<[\w\d\-$]+,)(.*?)(>>|$)/, merge: true}, regex: /(<<[\w\d\-$]+,)(.*?)(>>|$)/},
{token: "keyword", regex: /<<[\w\d\-$]+,?|>>/, merge: true}, {token: "keyword", regex: /<<[\w\d\-$]+,?|>>/},
{token: "constant.character", regex: /\({2,3}.*?\){2,3}/, merge: true}, {token: "constant.character", regex: /\({2,3}.*?\){2,3}/},
// Anchor // Anchor
{token: "keyword", regex: /\[\[.+?\]\]/}, {token: "keyword", regex: /\[\[.+?\]\]/},
// bibliography // bibliography
@ -122,26 +122,26 @@ var AsciidocHighlightRules = function() {
"listingBlock": [ "listingBlock": [
{token: "literal", regex: /^\.{4,}\s*$/, next: "dissallowDelimitedBlock"}, {token: "literal", regex: /^\.{4,}\s*$/, next: "dissallowDelimitedBlock"},
{token: "constant.numeric", regex: '<\\d+>'}, {token: "constant.numeric", regex: '<\\d+>'},
{token: "literal", regex: '[^<]+', merge: true}, {token: "literal", regex: '[^<]+'},
{token: "literal", regex: '<', merge: true} {token: "literal", regex: '<'}
], ],
"literalBlock": [ "literalBlock": [
{token: "literal", regex: /^-{4,}\s*$/, next: "dissallowDelimitedBlock"}, {token: "literal", regex: /^-{4,}\s*$/, next: "dissallowDelimitedBlock"},
{token: "constant.numeric", regex: '<\\d+>'}, {token: "constant.numeric", regex: '<\\d+>'},
{token: "literal", regex: '[^<]+', merge: true}, {token: "literal", regex: '[^<]+'},
{token: "literal", regex: '<', merge: true} {token: "literal", regex: '<'}
], ],
"passthroughBlock": [ "passthroughBlock": [
{token: "literal", regex: /^\+{4,}\s*$/, next: "dissallowDelimitedBlock"}, {token: "literal", regex: /^\+{4,}\s*$/, next: "dissallowDelimitedBlock"},
{token: "literal", regex: identifierRe + "|\\d+", merge: true}, {token: "literal", regex: identifierRe + "|\\d+"},
{include: "macros"}, {include: "macros"},
{token: "literal", regex: ".", merge: true} {token: "literal", regex: "."}
], ],
"smallPassthrough": [ "smallPassthrough": [
{token: "literal", regex: /[+]{3,}/, next: "dissallowDelimitedBlock"}, {token: "literal", regex: /[+]{3,}/, next: "dissallowDelimitedBlock"},
{token: "literal", regex: /^\s*$/, next: "dissallowDelimitedBlock", merge: true}, {token: "literal", regex: /^\s*$/, next: "dissallowDelimitedBlock"},
{token: "literal", regex: identifierRe + "|\\d+", merge: true}, {token: "literal", regex: identifierRe + "|\\d+"},
{include: "macros"} {include: "macros"}
], ],

View file

@ -58,7 +58,6 @@ var c_cppHighlightRules = function() {
DocCommentHighlightRules.getStartRule("doc-start"), DocCommentHighlightRules.getStartRule("doc-start"),
{ {
token : "comment", // multi line comment token : "comment", // multi line comment
merge : true,
regex : "\\/\\*", regex : "\\/\\*",
next : "comment" next : "comment"
}, { }, {
@ -66,7 +65,6 @@ var c_cppHighlightRules = function() {
regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]' regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
}, { }, {
token : "string", // multi line string start token : "string", // multi line string start
merge : true,
regex : '["].*\\\\$', regex : '["].*\\\\$',
next : "qqstring" next : "qqstring"
}, { }, {
@ -74,7 +72,6 @@ var c_cppHighlightRules = function() {
regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']" regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
}, { }, {
token : "string", // multi line string start token : "string", // multi line string start
merge : true,
regex : "['].*\\\\$", regex : "['].*\\\\$",
next : "qstring" next : "qstring"
}, { }, {
@ -85,11 +82,11 @@ var c_cppHighlightRules = function() {
regex : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b" regex : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"
}, { }, {
token : "keyword", // pre-compiler directives token : "keyword", // pre-compiler directives
regex : "(?:#include|#import|#pragma|#line|#define|#undef|#if|#ifdef|#else|#elif|#ifndef)", regex : "(?:#include|#import|#pragma|#line|#define|#undef|#if|#ifdef|#else|#elif|#ifndef)\\b",
next : "directive" next : "directive"
}, { }, {
token : "keyword", // special case pre-compiler directive token : "keyword", // special case pre-compiler directive
regex : "(?:#endif)" regex : "(?:#endif)\\b"
}, { }, {
token : "support.function.C99.c", token : "support.function.C99.c",
regex : cFunctions regex : cFunctions
@ -120,7 +117,6 @@ var c_cppHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "comment", // comment spanning whole line token : "comment", // comment spanning whole line
merge : true,
regex : ".+" regex : ".+"
} }
], ],
@ -131,7 +127,6 @@ var c_cppHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "string", token : "string",
merge : true,
regex : '.+' regex : '.+'
} }
], ],
@ -142,7 +137,6 @@ var c_cppHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "string", token : "string",
merge : true,
regex : '.+' regex : '.+'
} }
], ],

View file

@ -129,10 +129,6 @@ var ClojureHighlightRules = function() {
{ {
token : "comment", token : "comment",
regex : ";.*$" regex : ";.*$"
}, {
token : "comment", // multi line comment
regex : "^=begin$",
next : "comment"
}, { }, {
token : "keyword", //parens token : "keyword", //parens
regex : "[\\(|\\)]" regex : "[\\(|\\)]"
@ -182,25 +178,12 @@ var ClojureHighlightRules = function() {
} }
], ],
"comment" : [
{
token : "comment", // closing comment
regex : "^=end$",
next : "start"
}, {
token : "comment", // comment spanning whole line
merge : true,
regex : ".+"
}
],
"string" : [ "string" : [
{ {
token : "constant.language.escape", token : "constant.language.escape",
merge : true,
regex : "\\\\.|\\\\$" regex : "\\\\.|\\\\$"
}, { }, {
token : "string", token : "string",
merge : true,
regex : '[^"\\\\]+' regex : '[^"\\\\]+'
}, { }, {
token : "string", token : "string",

View file

@ -40,7 +40,6 @@ define(function(require, exports, module) {
var identifier = "[$A-Za-z_\\x7f-\\uffff][$\\w\\x7f-\\uffff]*"; var identifier = "[$A-Za-z_\\x7f-\\uffff][$\\w\\x7f-\\uffff]*";
var stringfill = { var stringfill = {
token : "string", token : "string",
merge : true,
regex : ".+" regex : ".+"
}; };
@ -113,32 +112,26 @@ define(function(require, exports, module) {
regex : "(?:0x[\\da-fA-F]+|(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[eE][+-]?\\d+)?)" regex : "(?:0x[\\da-fA-F]+|(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[eE][+-]?\\d+)?)"
}, { }, {
token : "string", token : "string",
merge : true,
regex : "'''", regex : "'''",
next : "qdoc" next : "qdoc"
}, { }, {
token : "string", token : "string",
merge : true,
regex : '"""', regex : '"""',
next : "qqdoc" next : "qqdoc"
}, { }, {
token : "string", token : "string",
merge : true,
regex : "'", regex : "'",
next : "qstring" next : "qstring"
}, { }, {
token : "string", token : "string",
merge : true,
regex : '"', regex : '"',
next : "qqstring" next : "qqstring"
}, { }, {
token : "string", token : "string",
merge : true,
regex : "`", regex : "`",
next : "js" next : "js"
}, { }, {
token : "string.regex", token : "string.regex",
merge : true,
regex : "///", regex : "///",
next : "heregex" next : "heregex"
}, { }, {
@ -146,7 +139,6 @@ define(function(require, exports, module) {
regex : /(?:\/(?![\s=])[^[\/\n\\]*(?:(?:\\[\s\S]|\[[^\]\n\\]*(?:\\[\s\S][^\]\n\\]*)*])[^[\/\n\\]*)*\/)(?:[imgy]{0,4})(?!\w)/ regex : /(?:\/(?![\s=])[^[\/\n\\]*(?:(?:\\[\s\S]|\[[^\]\n\\]*(?:\\[\s\S][^\]\n\\]*)*])[^[\/\n\\]*)*\/)(?:[imgy]{0,4})(?!\w)/
}, { }, {
token : "comment", token : "comment",
merge : true,
regex : "###(?!#)", regex : "###(?!#)",
next : "comment" next : "comment"
}, { }, {
@ -281,20 +273,17 @@ define(function(require, exports, module) {
qstring : [{ qstring : [{
token : "string", token : "string",
regex : "[^\\\\']*(?:\\\\.[^\\\\']*)*'", regex : "[^\\\\']*(?:\\\\.[^\\\\']*)*'",
merge : true,
next : "start" next : "start"
}, stringfill], }, stringfill],
qqstring : [{ qqstring : [{
token : "string", token : "string",
regex : '[^\\\\"]*(?:\\\\.[^\\\\"]*)*"', regex : '[^\\\\"]*(?:\\\\.[^\\\\"]*)*"',
merge : true,
next : "start" next : "start"
}, stringfill], }, stringfill],
js : [{ js : [{
token : "string", token : "string",
merge : true,
regex : "[^\\\\`]*(?:\\\\.[^\\\\`]*)*`", regex : "[^\\\\`]*(?:\\\\.[^\\\\`]*)*`",
next : "start" next : "start"
}, stringfill], }, stringfill],
@ -308,7 +297,6 @@ define(function(require, exports, module) {
regex : "\\s+(?:#.*)?" regex : "\\s+(?:#.*)?"
}, { }, {
token : "string.regex", token : "string.regex",
merge : true,
regex : "\\S+" regex : "\\S+"
}], }],
@ -318,7 +306,6 @@ define(function(require, exports, module) {
next : "start" next : "start"
}, { }, {
token : "comment", token : "comment",
merge : true,
regex : ".+" regex : ".+"
}] }]
}; };

View file

@ -65,7 +65,7 @@ module.exports = {
var tokens = this.tokenizer.getLineTokens("foo = ({args}) ->", "start").tokens; var tokens = this.tokenizer.getLineTokens("foo = ({args}) ->", "start").tokens;
var correct = [ var correct = [
"entity.name.function", "text", "keyword.operator", "text", "entity.name.function", "text", "keyword.operator", "text",
"paren.lparen", "paren.lparen", "variable.parameter", "paren.rparen", "paren.rparen", "text", "storage.type" "paren.lparen", "variable.parameter", "paren.rparen", "text", "storage.type"
]; ];
this.testTokens(tokens, correct); this.testTokens(tokens, correct);
@ -80,7 +80,7 @@ module.exports = {
var tokens = this.tokenizer.getLineTokens("foo : ({args}) ->", "start").tokens; var tokens = this.tokenizer.getLineTokens("foo : ({args}) ->", "start").tokens;
var correct = [ var correct = [
"entity.name.function", "text", "punctuation.operator", "text", "entity.name.function", "text", "punctuation.operator", "text",
"paren.lparen", "paren.lparen", "variable.parameter", "paren.rparen", "paren.rparen", "text", "storage.type" "paren.lparen", "variable.parameter", "paren.rparen", "text", "storage.type"
]; ];
this.testTokens(tokens, correct); this.testTokens(tokens, correct);
}, },
@ -115,16 +115,16 @@ module.exports = {
var tokens = this.tokenizer.getLineTokens("foo = ({}) ->", "start").tokens; var tokens = this.tokenizer.getLineTokens("foo = ({}) ->", "start").tokens;
var correct = [ var correct = [
"entity.name.function", "text", "keyword.operator", "text", "entity.name.function", "text", "keyword.operator", "text",
"paren.lparen", "paren.lparen", "paren.rparen", "paren.rparen", "text", "storage.type" "paren.lparen", "paren.rparen", "text", "storage.type"
]; ];
this.testTokens(tokens, correct); this.testTokens(tokens, correct);
tokens = this.tokenizer.getLineTokens("foo = ({ }) ->", "start").tokens; tokens = this.tokenizer.getLineTokens("foo = ({ }) ->", "start").tokens;
correct = [ correct = [
"entity.name.function", "text", "keyword.operator", "text", "entity.name.function", "text", "keyword.operator", "text",
"paren.lparen", "paren.lparen", "text", "paren.rparen", "paren.rparen", "text", "storage.type" "paren.lparen", "text", "paren.rparen", "text", "storage.type"
]; ];
assert.equal(tokens.length, 11); assert.equal(tokens.length, 9);
this.testTokens(tokens, correct); this.testTokens(tokens, correct);
}, },
@ -132,7 +132,7 @@ module.exports = {
var tokens = this.tokenizer.getLineTokens("foo : ({}) ->", "start").tokens; var tokens = this.tokenizer.getLineTokens("foo : ({}) ->", "start").tokens;
var correct = [ var correct = [
"entity.name.function", "text", "punctuation.operator", "text", "entity.name.function", "text", "punctuation.operator", "text",
"paren.lparen", "paren.lparen", "paren.rparen", "paren.rparen", "text", "storage.type" "paren.lparen", "paren.rparen", "text", "storage.type"
]; ];
this.testTokens(tokens, correct); this.testTokens(tokens, correct);
}, },

View file

@ -45,7 +45,6 @@ var ColdfusionHighlightRules = function() {
this.$rules = { this.$rules = {
start : [ { start : [ {
token : "text", token : "text",
merge : true,
regex : "<\\!\\[CDATA\\[", regex : "<\\!\\[CDATA\\[",
next : "cdata" next : "cdata"
}, { }, {
@ -53,7 +52,6 @@ var ColdfusionHighlightRules = function() {
regex : "<\\?.*?\\?>" regex : "<\\?.*?\\?>"
}, { }, {
token : "comment", token : "comment",
merge : true,
regex : "<\\!--", regex : "<\\!--",
next : "comment" next : "comment"
}, { }, {
@ -82,11 +80,9 @@ var ColdfusionHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "text", token : "text",
merge : true,
regex : "\\s+" regex : "\\s+"
}, { }, {
token : "text", token : "text",
merge : true,
regex : ".+" regex : ".+"
} ], } ],
@ -96,7 +92,6 @@ var ColdfusionHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "comment", token : "comment",
merge : true,
regex : ".+" regex : ".+"
} ] } ]
}; };

View file

@ -25,7 +25,6 @@ var CSharpHighlightRules = function() {
{ {
token : "comment", // multi line comment token : "comment", // multi line comment
regex : "\\/\\*", regex : "\\/\\*",
merge : true,
next : "comment" next : "comment"
}, { }, {
token : "string.regexp", token : "string.regexp",
@ -74,7 +73,6 @@ var CSharpHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "comment", // comment spanning whole line token : "comment", // comment spanning whole line
merge : true,
regex : ".+" regex : ".+"
} }
] ]

View file

@ -63,7 +63,6 @@ var CssHighlightRules = function() {
var base_ruleset = [ var base_ruleset = [
{ {
token : "comment", // multi line comment token : "comment", // multi line comment
merge : true,
regex : "\\/\\*", regex : "\\/\\*",
next : "ruleset_comment" next : "ruleset_comment"
}, { }, {
@ -112,7 +111,6 @@ var CssHighlightRules = function() {
var base_comment = [{ var base_comment = [{
token : "comment", // comment spanning whole line token : "comment", // comment spanning whole line
merge : true,
regex : ".+" regex : ".+"
}]; }];
@ -140,7 +138,6 @@ var CssHighlightRules = function() {
this.$rules = { this.$rules = {
"start" : [{ "start" : [{
token : "comment", // multi line comment token : "comment", // multi line comment
merge : true,
regex : "\\/\\*", regex : "\\/\\*",
next : "comment" next : "comment"
}, { }, {
@ -167,7 +164,6 @@ var CssHighlightRules = function() {
"media" : [ { "media" : [ {
token : "comment", // multi line comment token : "comment", // multi line comment
merge : true,
regex : "\\/\\*", regex : "\\/\\*",
next : "media_comment" next : "media_comment"
}, { }, {

View file

@ -28,7 +28,6 @@ var DartHighlightRules = function() {
var stringfill = { var stringfill = {
token : "string", token : "string",
merge : true,
regex : ".+" regex : ".+"
}; };
@ -44,7 +43,6 @@ var DartHighlightRules = function() {
}, },
{ {
"token" : "comment", // multi line comment "token" : "comment", // multi line comment
"merge" : true,
"regex" : /\/\*/, "regex" : /\/\*/,
"next" : "comment" "next" : "comment"
}, },
@ -94,25 +92,21 @@ var DartHighlightRules = function() {
}, },
{ {
"token" : "string", "token" : "string",
"merge" : true,
"regex" : "'''", "regex" : "'''",
"next" : "qdoc" "next" : "qdoc"
}, },
{ {
"token" : "string", "token" : "string",
"merge" : true,
"regex" : '"""', "regex" : '"""',
"next" : "qqdoc" "next" : "qqdoc"
}, },
{ {
"token" : "string", "token" : "string",
"merge" : true,
"regex" : "'", "regex" : "'",
"next" : "qstring" "next" : "qstring"
}, },
{ {
"token" : "string", "token" : "string",
"merge" : true,
"regex" : '"', "regex" : '"',
"next" : "qqstring" "next" : "qqstring"
}, },
@ -145,11 +139,9 @@ var DartHighlightRules = function() {
{ {
token : "comment", // closing comment token : "comment", // closing comment
regex : ".*?\\*\\/", regex : ".*?\\*\\/",
merge : true,
next : "start" next : "start"
}, { }, {
token : "comment", // comment spanning whole line token : "comment", // comment spanning whole line
merge : true,
regex : ".+" regex : ".+"
} }
], ],
@ -171,7 +163,6 @@ var DartHighlightRules = function() {
{ {
"token" : "string", "token" : "string",
"regex" : "[^\\\\']*(?:\\\\.[^\\\\']*)*'", "regex" : "[^\\\\']*(?:\\\\.[^\\\\']*)*'",
"merge" : true,
"next" : "start" "next" : "start"
}, stringfill], }, stringfill],
@ -179,7 +170,6 @@ var DartHighlightRules = function() {
{ {
"token" : "string", "token" : "string",
"regex" : '[^\\\\"]*(?:\\\\.[^\\\\"]*)*"', "regex" : '[^\\\\"]*(?:\\\\.[^\\\\"]*)*"',
"merge" : true,
"next" : "start" "next" : "start"
}, stringfill] }, stringfill]
} }

View file

@ -42,19 +42,15 @@ var DocCommentHighlightRules = function() {
regex : "@[\\w\\d_]+" // TODO: fix email addresses regex : "@[\\w\\d_]+" // TODO: fix email addresses
}, { }, {
token : "comment.doc", token : "comment.doc",
merge : true,
regex : "\\s+" regex : "\\s+"
}, { }, {
token : "comment.doc", token : "comment.doc",
merge : true,
regex : "TODO" regex : "TODO"
}, { }, {
token : "comment.doc", token : "comment.doc",
merge : true,
regex : "[^@\\*]+" regex : "[^@\\*]+"
}, { }, {
token : "comment.doc", token : "comment.doc",
merge : true,
regex : "." regex : "."
}] }]
}; };
@ -65,7 +61,6 @@ oop.inherits(DocCommentHighlightRules, TextHighlightRules);
DocCommentHighlightRules.getStartRule = function(start) { DocCommentHighlightRules.getStartRule = function(start) {
return { return {
token : "comment.doc", // doc comment token : "comment.doc", // doc comment
merge : true,
regex : "\\/\\*(?=\\*)", regex : "\\/\\*(?=\\*)",
next : start next : start
}; };
@ -74,7 +69,6 @@ DocCommentHighlightRules.getStartRule = function(start) {
DocCommentHighlightRules.getEndRule = function (start) { DocCommentHighlightRules.getEndRule = function (start) {
return { return {
token : "comment.doc", // closing comment token : "comment.doc", // closing comment
merge : true,
regex : "\\*\\/", regex : "\\*\\/",
next : start next : start
}; };

View file

@ -34,7 +34,7 @@ define(function(require, exports, module) {
var oop = require("../../lib/oop"); var oop = require("../../lib/oop");
var BaseFoldMode = require("./fold_mode").FoldMode; var BaseFoldMode = require("./fold_mode").FoldMode;
var Range = require("../../range").Range; var Range = require("../../range").Range;
var TokenIterator = require("ace/token_iterator").TokenIterator; var TokenIterator = require("../../token_iterator").TokenIterator;
var FoldMode = exports.FoldMode = function() {}; var FoldMode = exports.FoldMode = function() {};

View file

@ -34,7 +34,7 @@ define(function(require, exports, module) {
var oop = require("../../lib/oop"); var oop = require("../../lib/oop");
var BaseFoldMode = require("./fold_mode").FoldMode; var BaseFoldMode = require("./fold_mode").FoldMode;
var Range = require("../../range").Range; var Range = require("../../range").Range;
var TokenIterator = require("ace/token_iterator").TokenIterator; var TokenIterator = require("../../token_iterator").TokenIterator;
var FoldMode = exports.FoldMode = function() {}; var FoldMode = exports.FoldMode = function() {};

View file

@ -27,7 +27,6 @@ define(function(require, exports, module) {
DocCommentHighlightRules.getStartRule("doc-start"), DocCommentHighlightRules.getStartRule("doc-start"),
{ {
token : "comment", // multi line comment token : "comment", // multi line comment
merge : true,
regex : "\\/\\*", regex : "\\/\\*",
next : "comment" next : "comment"
}, { }, {
@ -35,7 +34,6 @@ define(function(require, exports, module) {
regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]' regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
}, { }, {
token : "string", // multi line string start token : "string", // multi line string start
merge : true,
regex : '["].*\\\\$', regex : '["].*\\\\$',
next : "qqstring" next : "qqstring"
}, { }, {
@ -43,7 +41,6 @@ define(function(require, exports, module) {
regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']" regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
}, { }, {
token : "string", // multi line string start token : "string", // multi line string start
merge : true,
regex : "['].*\\\\$", regex : "['].*\\\\$",
next : "qstring" next : "qstring"
}, { }, {
@ -85,7 +82,6 @@ define(function(require, exports, module) {
next : "start" next : "start"
}, { }, {
token : "comment", // comment spanning whole line token : "comment", // comment spanning whole line
merge : true,
regex : ".+" regex : ".+"
} }
], ],
@ -96,7 +92,6 @@ define(function(require, exports, module) {
next : "start" next : "start"
}, { }, {
token : "string", token : "string",
merge : true,
regex : '.+' regex : '.+'
} }
], ],
@ -107,7 +102,6 @@ define(function(require, exports, module) {
next : "start" next : "start"
}, { }, {
token : "string", token : "string",
merge : true,
regex : '.+' regex : '.+'
} }
] ]

View file

@ -72,7 +72,6 @@ var GroovyHighlightRules = function() {
DocCommentHighlightRules.getStartRule("doc-start"), DocCommentHighlightRules.getStartRule("doc-start"),
{ {
token : "comment", // multi line comment token : "comment", // multi line comment
merge : true,
regex : "\\/\\*", regex : "\\/\\*",
next : "comment" next : "comment"
}, { }, {
@ -127,7 +126,6 @@ var GroovyHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "comment", // comment spanning whole line token : "comment", // comment spanning whole line
merge : true,
regex : ".+" regex : ".+"
} }
], ],

View file

@ -35,7 +35,6 @@ var HaxeHighlightRules = function() {
{ {
token : "comment", // multi line comment token : "comment", // multi line comment
regex : "\\/\\*", regex : "\\/\\*",
merge : true,
next : "comment" next : "comment"
}, { }, {
token : "string.regexp", token : "string.regexp",
@ -84,7 +83,6 @@ var HaxeHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "comment", // comment spanning whole line token : "comment", // comment spanning whole line
merge : true,
regex : ".+" regex : ".+"
} }
] ]

View file

@ -64,7 +64,6 @@ var HtmlHighlightRules = function() {
this.$rules = { this.$rules = {
start : [{ start : [{
token : "text", token : "text",
merge : true,
regex : "<\\!\\[CDATA\\[", regex : "<\\!\\[CDATA\\[",
next : "cdata" next : "cdata"
}, { }, {
@ -72,7 +71,6 @@ var HtmlHighlightRules = function() {
regex : "<\\?.*?\\?>" regex : "<\\?.*?\\?>"
}, { }, {
token : "comment", token : "comment",
merge : true,
regex : "<\\!--", regex : "<\\!--",
next : "comment" next : "comment"
}, { }, {
@ -107,11 +105,9 @@ var HtmlHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "text", token : "text",
merge : true,
regex : "\\s+" regex : "\\s+"
}, { }, {
token : "text", token : "text",
merge : true,
regex : ".+" regex : ".+"
} ], } ],
@ -121,7 +117,6 @@ var HtmlHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "comment", token : "comment",
merge : true,
regex : ".+" regex : ".+"
} ] } ]
}; };

View file

@ -61,7 +61,7 @@ var testData = {
type: "string", type: "string",
value: "'a'" value: "'a'"
}, { }, {
type: "meta.tag", type: "meta.tag.r",
value: ">" value: ">"
}, { }, {
type: "storage.type", type: "storage.type",
@ -73,7 +73,7 @@ var testData = {
type: "meta.tag.tag-name.script", type: "meta.tag.tag-name.script",
value: "script" value: "script"
}, { }, {
type: "meta.tag", type: "meta.tag.r",
value: ">" value: ">"
}, { }, {
type: "text", type: "text",
@ -111,7 +111,7 @@ var testData = {
type: "string", type: "string",
value: "def\"" value: "def\""
}, { }, {
type: "meta.tag", type: "meta.tag.r",
value: ">" value: ">"
} }
] ]
@ -147,7 +147,7 @@ var testData = {
type: "string", type: "string",
value: "def\"'" value: "def\"'"
}, { }, {
type: "meta.tag", type: "meta.tag.r",
value: ">" value: ">"
} }
] ]

View file

@ -165,7 +165,6 @@ var JadeHighlightRules = function() {
}, },
{ {
"token": "comment.block.jade", "token": "comment.block.jade",
"merge" : true,
"regex" : ".+" "regex" : ".+"
} }
], ],
@ -264,17 +263,14 @@ var JadeHighlightRules = function() {
}, { }, {
token : "string", token : "string",
regex : '[^"\\\\]+', regex : '[^"\\\\]+',
merge : true
}, { }, {
token : "string", token : "string",
regex : "\\\\$", regex : "\\\\$",
next : "qqstring", next : "qqstring",
merge : true
}, { }, {
token : "string", token : "string",
regex : '"|$', regex : '"|$',
next : "tag_attributes", next : "tag_attributes",
merge : true
} }
], ],
"qstring" : [ "qstring" : [
@ -284,17 +280,14 @@ var JadeHighlightRules = function() {
}, { }, {
token : "string", token : "string",
regex : "[^'\\\\]+", regex : "[^'\\\\]+",
merge : true
}, { }, {
token : "string", token : "string",
regex : "\\\\$", regex : "\\\\$",
next : "qstring", next : "qstring",
merge : true
}, { }, {
token : "string", token : "string",
regex : "'|$", regex : "'|$",
next : "tag_attributes", next : "tag_attributes",
merge : true
} }
] ]
}; };

View file

@ -70,7 +70,6 @@ var JavaHighlightRules = function() {
DocCommentHighlightRules.getStartRule("doc-start"), DocCommentHighlightRules.getStartRule("doc-start"),
{ {
token : "comment", // multi line comment token : "comment", // multi line comment
merge : true,
regex : "\\/\\*", regex : "\\/\\*",
next : "comment" next : "comment"
}, { }, {
@ -117,7 +116,6 @@ var JavaHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "comment", // comment spanning whole line token : "comment", // comment spanning whole line
merge : true,
regex : ".+" regex : ".+"
} }
] ]

View file

@ -65,7 +65,7 @@ var JavaScriptHighlightRules = function() {
}, "identifier"); }, "identifier");
// keywords which can be followed by regular expressions // keywords which can be followed by regular expressions
var kwBeforeRe = "case|do|else|finally|in|instanceof|return|throw|try|typeof|yield"; var kwBeforeRe = "case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void";
// TODO: Unicode escape sequences // TODO: Unicode escape sequences
var identifierRe = "[a-zA-Z\\$_\u00a1-\uffff][a-zA-Z\\d\\$_\u00a1-\uffff]*\\b"; var identifierRe = "[a-zA-Z\\$_\u00a1-\uffff][a-zA-Z\\d\\$_\u00a1-\uffff]*\\b";
@ -90,7 +90,6 @@ var JavaScriptHighlightRules = function() {
DocCommentHighlightRules.getStartRule("doc-start"), DocCommentHighlightRules.getStartRule("doc-start"),
{ {
token : "comment", // multi line comment token : "comment", // multi line comment
merge : true,
regex : /\/\*/, regex : /\/\*/,
next : "comment" next : "comment"
}, { }, {
@ -186,7 +185,7 @@ var JavaScriptHighlightRules = function() {
regex : identifierRe regex : identifierRe
}, { }, {
token : "keyword.operator", token : "keyword.operator",
regex : /!|\$|%|&|\*|\-\-|\-|\+\+|\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\|\||\?\:|\*=|%=|\+=|\-=|&=|\^=|\b(?:in|instanceof|new|delete|typeof|void)/, regex : /--|\+\+|[!$%&*+\-~]|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\|\||\?\:|\*=|%=|\+=|\-=|&=|\^=/,
next : "regex_allowed" next : "regex_allowed"
}, { }, {
token : "punctuation.operator", token : "punctuation.operator",
@ -217,7 +216,6 @@ var JavaScriptHighlightRules = function() {
DocCommentHighlightRules.getStartRule("doc-start"), DocCommentHighlightRules.getStartRule("doc-start"),
{ {
token : "comment", // multi line comment token : "comment", // multi line comment
merge : true,
regex : "\\/\\*", regex : "\\/\\*",
next : "comment_regex_allowed" next : "comment_regex_allowed"
}, { }, {
@ -227,7 +225,6 @@ var JavaScriptHighlightRules = function() {
token: "string.regexp", token: "string.regexp",
regex: "\\/", regex: "\\/",
next: "regex", next: "regex",
merge: true
}, { }, {
token : "text", token : "text",
regex : "\\s+" regex : "\\s+"
@ -249,7 +246,6 @@ var JavaScriptHighlightRules = function() {
token: "string.regexp", token: "string.regexp",
regex: "/\\w*", regex: "/\\w*",
next: "start", next: "start",
merge: true
}, { }, {
// invalid operators // invalid operators
token : "invalid", token : "invalid",
@ -261,12 +257,10 @@ var JavaScriptHighlightRules = function() {
}, { }, {
token: "string.regexp", token: "string.regexp",
regex: /{|[^{\[\/\\(|)$^+*?]+/, regex: /{|[^{\[\/\\(|)$^+*?]+/,
merge: true
}, { }, {
token: "constant.language.escape", token: "constant.language.escape",
regex: /\[\^?/, regex: /\[\^?/,
next: "regex_character_class", next: "regex_character_class",
merge: true
}, { }, {
token: "empty", token: "empty",
regex: "", regex: "",
@ -281,14 +275,12 @@ var JavaScriptHighlightRules = function() {
token: "constant.language.escape", token: "constant.language.escape",
regex: "]", regex: "]",
next: "regex", next: "regex",
merge: true
}, { }, {
token: "constant.language.escape", token: "constant.language.escape",
regex: "-" regex: "-"
}, { }, {
token: "string.regexp.charachterclass", token: "string.regexp.charachterclass",
regex: /[^\]\-\\]+/, regex: /[^\]\-\\]+/,
merge: true
}, { }, {
token: "empty", token: "empty",
regex: "", regex: "",
@ -302,11 +294,9 @@ var JavaScriptHighlightRules = function() {
}, { }, {
token: "punctuation.operator", token: "punctuation.operator",
regex: "[, ]+", regex: "[, ]+",
merge: true
}, { }, {
token: "punctuation.operator", token: "punctuation.operator",
regex: "$", regex: "$",
merge: true
}, { }, {
token: "empty", token: "empty",
regex: "", regex: "",
@ -317,11 +307,9 @@ var JavaScriptHighlightRules = function() {
{ {
token : "comment", // closing comment token : "comment", // closing comment
regex : ".*?\\*\\/", regex : ".*?\\*\\/",
merge : true,
next : "regex_allowed" next : "regex_allowed"
}, { }, {
token : "comment", // comment spanning whole line token : "comment", // comment spanning whole line
merge : true,
regex : ".+" regex : ".+"
} }
], ],
@ -329,11 +317,9 @@ var JavaScriptHighlightRules = function() {
{ {
token : "comment", // closing comment token : "comment", // closing comment
regex : ".*?\\*\\/", regex : ".*?\\*\\/",
merge : true,
next : "start" next : "start"
}, { }, {
token : "comment", // comment spanning whole line token : "comment", // comment spanning whole line
merge : true,
regex : ".+" regex : ".+"
} }
], ],
@ -341,40 +327,34 @@ var JavaScriptHighlightRules = function() {
{ {
token : "constant.language.escape", token : "constant.language.escape",
regex : escapedRe regex : escapedRe
}, {
token : "string",
regex : '[^"\\\\]+',
merge : true
}, { }, {
token : "string", token : "string",
regex : "\\\\$", regex : "\\\\$",
next : "qqstring", next : "qqstring",
merge : true
}, { }, {
token : "string", token : "string",
regex : '"|$', regex : '"|$',
next : "start", next : "start",
merge : true }, {
token : "string",
regex : '.|\\w+|\\s+',
} }
], ],
"qstring" : [ "qstring" : [
{ {
token : "constant.language.escape", token : "constant.language.escape",
regex : escapedRe regex : escapedRe
}, {
token : "string",
regex : "[^'\\\\]+",
merge : true
}, { }, {
token : "string", token : "string",
regex : "\\\\$", regex : "\\\\$",
next : "qstring", next : "qstring",
merge : true
}, { }, {
token : "string", token : "string",
regex : "'|$", regex : "'|$",
next : "start", next : "start",
merge : true }, {
token : "string",
regex : '.|\\w+|\\s+',
} }
] ]
}; };

View file

@ -99,14 +99,11 @@ module.exports = {
var tokens = this.tokenizer.getLineTokens(line, "start").tokens; var tokens = this.tokenizer.getLineTokens(line, "start").tokens;
assert.equal(7, tokens.length); // TODO is it useful to keep parens in separate tokens?
assert.equal(3, tokens.length);
assert.equal("paren.lparen", tokens[0].type); assert.equal("paren.lparen", tokens[0].type);
assert.equal("paren.lparen", tokens[1].type); assert.equal("text", tokens[1].type);
assert.equal("paren.lparen", tokens[2].type); assert.equal("paren.rparen", tokens[2].type);
assert.equal("text", tokens[3].type);
assert.equal("paren.rparen", tokens[4].type);
assert.equal("paren.rparen", tokens[5].type);
assert.equal("paren.rparen", tokens[6].type);
}, },
"test for last rule in ruleset to catch capturing group bugs" : function() { "test for last rule in ruleset to catch capturing group bugs" : function() {

View file

@ -80,17 +80,14 @@ var JsonHighlightRules = function() {
}, { }, {
token : "string", token : "string",
regex : '[^"\\\\]+', regex : '[^"\\\\]+',
merge : true
}, { }, {
token : "string", token : "string",
regex : '"', regex : '"',
next : "start", next : "start",
merge : true
}, { }, {
token : "string", token : "string",
regex : "", regex : "",
next : "start", next : "start",
merge : true
} }
] ]
}; };

View file

@ -54,7 +54,6 @@ var JspHighlightRules = function() {
this.$rules["start"].unshift({ this.$rules["start"].unshift({
token : "comment", token : "comment",
merge : true,
regex : "<%--", regex : "<%--",
next : "comment" next : "comment"
}); });

View file

@ -37,7 +37,6 @@ define(function(require, exports, module) {
{ {
token : "comment", // multi line comment token : "comment", // multi line comment
regex : "\\/\\*", regex : "\\/\\*",
merge : true,
next : "comment" next : "comment"
}, { }, {
token : "string.regexp", token : "string.regexp",
@ -106,7 +105,6 @@ define(function(require, exports, module) {
next : "start" next : "start"
}, { }, {
token : "comment", // comment spanning whole line token : "comment", // comment spanning whole line
merge : true,
regex : ".+" regex : ".+"
} }
] ]

View file

@ -177,7 +177,6 @@ var LessHighlightRules = function() {
}, },
{ {
token : "comment", // multi line comment token : "comment", // multi line comment
merge : true,
regex : "\\/\\*", regex : "\\/\\*",
next : "comment" next : "comment"
}, { }, {
@ -257,7 +256,6 @@ var LessHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "comment", // comment spanning whole line token : "comment", // comment spanning whole line
merge : true,
regex : ".+" regex : ".+"
} }
] ]

View file

@ -83,7 +83,6 @@ var LiquidHighlightRules = function() {
next : "liquid_start" next : "liquid_start"
}, { }, {
token : "meta.tag", token : "meta.tag",
merge : true,
regex : "<\\!\\[CDATA\\[", regex : "<\\!\\[CDATA\\[",
next : "cdata" next : "cdata"
}, { }, {
@ -91,7 +90,6 @@ var LiquidHighlightRules = function() {
regex : "<\\?.*?\\?>" regex : "<\\?.*?\\?>"
}, { }, {
token : "comment", token : "comment",
merge : true,
regex : "<\\!--", regex : "<\\!--",
next : "comment" next : "comment"
}, { }, {
@ -120,11 +118,9 @@ var LiquidHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "text", token : "text",
merge : true,
regex : "\\s+" regex : "\\s+"
}, { }, {
token : "text", token : "text",
merge : true,
regex : ".+" regex : ".+"
} ], } ],
@ -134,7 +130,6 @@ var LiquidHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "comment", token : "comment",
merge : true,
regex : ".+" regex : ".+"
} ] , } ] ,

View file

@ -65,14 +65,10 @@ module.exports = {
var tokens = this.tokenizer.getLineTokens(line, "liquid_start").tokens; var tokens = this.tokenizer.getLineTokens(line, "liquid_start").tokens;
assert.equal(7, tokens.length); assert.equal(3, tokens.length);
assert.equal("paren.lparen", tokens[0].type); assert.equal("paren.lparen", tokens[0].type);
assert.equal("paren.lparen", tokens[1].type); assert.equal("text", tokens[1].type);
assert.equal("paren.lparen", tokens[2].type); assert.equal("paren.rparen", tokens[2].type);
assert.equal("text", tokens[3].type);
assert.equal("paren.rparen", tokens[4].type);
assert.equal("paren.rparen", tokens[5].type);
assert.equal("paren.rparen", tokens[6].type);
} }
}; };

View file

@ -128,27 +128,22 @@ var LuaHighlightRules = function() {
{ {
token : "comment", // --[[ comment token : "comment", // --[[ comment
regex : strPre + '\\-\\-\\[\\[.*$', regex : strPre + '\\-\\-\\[\\[.*$',
merge : true,
next : "qcomment" next : "qcomment"
}, { }, {
token : "comment", // --[=[ comment token : "comment", // --[=[ comment
regex : strPre + '\\-\\-\\[\\=\\[.*$', regex : strPre + '\\-\\-\\[\\=\\[.*$',
merge : true,
next : "qcomment1" next : "qcomment1"
}, { }, {
token : "comment", // --[==[ comment token : "comment", // --[==[ comment
regex : strPre + '\\-\\-\\[\\={2}\\[.*$', regex : strPre + '\\-\\-\\[\\={2}\\[.*$',
merge : true,
next : "qcomment2" next : "qcomment2"
}, { }, {
token : "comment", // --[===[ comment token : "comment", // --[===[ comment
regex : strPre + '\\-\\-\\[\\={3}\\[.*$', regex : strPre + '\\-\\-\\[\\={3}\\[.*$',
merge : true,
next : "qcomment3" next : "qcomment3"
}, { }, {
token : "comment", // --[====[ comment token : "comment", // --[====[ comment
regex : strPre + '\\-\\-\\[\\={4}\\[.*$', regex : strPre + '\\-\\-\\[\\={4}\\[.*$',
merge : true,
next : "qcomment4" next : "qcomment4"
}, { }, {
token : function(value){ // --[====+[ comment token : function(value){ // --[====+[ comment
@ -164,7 +159,6 @@ var LuaHighlightRules = function() {
return "comment"; return "comment";
}, },
regex : strPre + '\\-\\-\\[\\={5}\\=*\\[.*$', regex : strPre + '\\-\\-\\[\\={5}\\=*\\[.*$',
merge : true,
next : "qcomment5" next : "qcomment5"
}, },
@ -199,27 +193,22 @@ var LuaHighlightRules = function() {
{ {
token : "string", // [[ string token : "string", // [[ string
regex : strPre + '\\[\\[.*$', regex : strPre + '\\[\\[.*$',
merge : true,
next : "qstring" next : "qstring"
}, { }, {
token : "string", // [=[ string token : "string", // [=[ string
regex : strPre + '\\[\\=\\[.*$', regex : strPre + '\\[\\=\\[.*$',
merge : true,
next : "qstring1" next : "qstring1"
}, { }, {
token : "string", // [==[ string token : "string", // [==[ string
regex : strPre + '\\[\\={2}\\[.*$', regex : strPre + '\\[\\={2}\\[.*$',
merge : true,
next : "qstring2" next : "qstring2"
}, { }, {
token : "string", // [===[ string token : "string", // [===[ string
regex : strPre + '\\[\\={3}\\[.*$', regex : strPre + '\\[\\={3}\\[.*$',
merge : true,
next : "qstring3" next : "qstring3"
}, { }, {
token : "string", // [====[ string token : "string", // [====[ string
regex : strPre + '\\[\\={4}\\[.*$', regex : strPre + '\\[\\={4}\\[.*$',
merge : true,
next : "qstring4" next : "qstring4"
}, { }, {
token : function(value){ // --[====+[ string token : function(value){ // --[====+[ string
@ -231,7 +220,6 @@ var LuaHighlightRules = function() {
return "string"; return "string";
}, },
regex : strPre + '\\[\\={5}\\=*\\[.*$', regex : strPre + '\\[\\={5}\\=*\\[.*$',
merge : true,
next : "qstring5" next : "qstring5"
}, },
@ -270,7 +258,6 @@ var LuaHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "comment", token : "comment",
merge : true,
regex : '.+' regex : '.+'
} ], } ],
"qcomment1": [ { "qcomment1": [ {
@ -279,7 +266,6 @@ var LuaHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "comment", token : "comment",
merge : true,
regex : '.+' regex : '.+'
} ], } ],
"qcomment2": [ { "qcomment2": [ {
@ -288,7 +274,6 @@ var LuaHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "comment", token : "comment",
merge : true,
regex : '.+' regex : '.+'
} ], } ],
"qcomment3": [ { "qcomment3": [ {
@ -297,7 +282,6 @@ var LuaHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "comment", token : "comment",
merge : true,
regex : '.+' regex : '.+'
} ], } ],
"qcomment4": [ { "qcomment4": [ {
@ -306,7 +290,6 @@ var LuaHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "comment", token : "comment",
merge : true,
regex : '.+' regex : '.+'
} ], } ],
"qcomment5": [ { "qcomment5": [ {
@ -328,7 +311,6 @@ var LuaHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "comment", token : "comment",
merge : true,
regex : '.+' regex : '.+'
} ], } ],
@ -338,7 +320,6 @@ var LuaHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "string", token : "string",
merge : true,
regex : '.+' regex : '.+'
} ], } ],
"qstring1": [ { "qstring1": [ {
@ -347,7 +328,6 @@ var LuaHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "string", token : "string",
merge : true,
regex : '.+' regex : '.+'
} ], } ],
"qstring2": [ { "qstring2": [ {
@ -356,7 +336,6 @@ var LuaHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "string", token : "string",
merge : true,
regex : '.+' regex : '.+'
} ], } ],
"qstring3": [ { "qstring3": [ {
@ -365,7 +344,6 @@ var LuaHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "string", token : "string",
merge : true,
regex : '.+' regex : '.+'
} ], } ],
"qstring4": [ { "qstring4": [ {
@ -374,7 +352,6 @@ var LuaHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "string", token : "string",
merge : true,
regex : '.+' regex : '.+'
} ], } ],
"qstring5": [ { "qstring5": [ {
@ -396,7 +373,6 @@ var LuaHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "string", token : "string",
merge : true,
regex : '.+' regex : '.+'
} ] } ]

View file

@ -78,7 +78,7 @@ var MarkdownHighlightRules = function() {
github_embed("css", "css-"), github_embed("css", "css-"),
{ // Github style block { // Github style block
token : "support.function", token : "support.function",
regex : "^```[a-zA-Z]*\\s*$", regex : "^```\\s*[a-zA-Z]*(?:{.*?\\})?\\s*$",
next : "githubblock" next : "githubblock"
}, { // block quote }, { // block quote
token : "string", token : "string",
@ -180,6 +180,15 @@ var MarkdownHighlightRules = function() {
regex : "^```", regex : "^```",
next : "start" next : "start"
}]); }]);
var html = new HtmlHighlightRules().getRules();
for (var i in html) {
if (this.$rules[i])
this.$rules[i] = this.$rules[i].concat(html[i]);
else
this.$rules[i] = html[i];
}
}; };
oop.inherits(MarkdownHighlightRules, TextHighlightRules); oop.inherits(MarkdownHighlightRules, TextHighlightRules);

View file

@ -17,12 +17,10 @@ var ObjectiveCHighlightRules = function() {
"222|" + "222|" +
"x[a-zA-Z0-9]+)"; "x[a-zA-Z0-9]+)";
var specialVariables = [ var specialVariables = [{
{
"regex": "\\b_cmd\\b", "regex": "\\b_cmd\\b",
"token": "variable.other.selector.objc" "token": "variable.other.selector.objc"
}, }, {
{
"regex": "\\b(?:self|super)\\b", "regex": "\\b(?:self|super)\\b",
"token": "variable.language.objc" "token": "variable.language.objc"
} }
@ -31,8 +29,7 @@ var ObjectiveCHighlightRules = function() {
var cObj = new CHighlightRules(); var cObj = new CHighlightRules();
var cRules = cObj.getRules(); var cRules = cObj.getRules();
this.$rules = this.$rules = {
{
"start": [ "start": [
{ {
token : "comment", token : "comment",
@ -41,7 +38,6 @@ var ObjectiveCHighlightRules = function() {
DocCommentHighlightRules.getStartRule("doc-start"), DocCommentHighlightRules.getStartRule("doc-start"),
{ {
token : "comment", // multi line comment token : "comment", // multi line comment
merge : true,
regex : "\\/\\*", regex : "\\/\\*",
next : "comment" next : "comment"
}, },
@ -299,7 +295,6 @@ var ObjectiveCHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "comment", // comment spanning whole line token : "comment", // comment spanning whole line
merge : true,
regex : ".+" regex : ".+"
} }
], ],
@ -314,24 +309,17 @@ var ObjectiveCHighlightRules = function() {
// copy in C-Rules directly // copy in C-Rules directly
for (var r in cRules) { for (var r in cRules) {
if (r == "start") { if (this.$rules[r]) {
for (var key in cRules[r]) { if (this.$rules[r].push)
this.$rules.start.push(cRules[r][key]) this.$rules[r].push.apply(this.$rules[r], cRules[r]);
} } else {
}
else {
this.$rules[r] = cRules[r]; this.$rules[r] = cRules[r];
} }
} }
var startRules = this.$rules.start; this.$rules.bracketed_content = this.$rules.bracketed_content.concat(
for (var s in startRules) { this.$rules.start, specialVariables
this.$rules.bracketed_content.push(startRules[s]); );
}
for (var s in specialVariables) {
this.$rules.bracketed_content.push(specialVariables[s]);
}
this.embedRules(DocCommentHighlightRules, "doc-", this.embedRules(DocCommentHighlightRules, "doc-",
[ DocCommentHighlightRules.getEndRule("start") ]); [ DocCommentHighlightRules.getEndRule("start") ]);

View file

@ -257,7 +257,6 @@ var OcamlHighlightRules = function() {
}, },
{ {
token : "comment", token : "comment",
merge : true,
regex : '\\(\\*.*', regex : '\\(\\*.*',
next : "comment" next : "comment"
}, },
@ -271,7 +270,6 @@ var OcamlHighlightRules = function() {
}, },
{ {
token : "string", // " string token : "string", // " string
merge : true,
regex : '"', regex : '"',
next : "qstring" next : "qstring"
}, },
@ -316,7 +314,6 @@ var OcamlHighlightRules = function() {
}, },
{ {
token : "comment", // comment spanning whole line token : "comment", // comment spanning whole line
merge : true,
regex : ".+" regex : ".+"
} }
], ],
@ -328,7 +325,6 @@ var OcamlHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "string", token : "string",
merge : true,
regex : '.+' regex : '.+'
} }
] ]

View file

@ -90,7 +90,6 @@ var PerlHighlightRules = function() {
regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]' regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
}, { }, {
token : "string", // multi line string start token : "string", // multi line string start
merge : true,
regex : '["].*\\\\$', regex : '["].*\\\\$',
next : "qqstring" next : "qqstring"
}, { }, {
@ -98,7 +97,6 @@ var PerlHighlightRules = function() {
regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']" regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
}, { }, {
token : "string", // multi line string start token : "string", // multi line string start
merge : true,
regex : "['].*\\\\$", regex : "['].*\\\\$",
next : "qstring" next : "qstring"
}, { }, {
@ -131,7 +129,6 @@ var PerlHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "string", token : "string",
merge : true,
regex : '.+' regex : '.+'
} }
], ],
@ -142,7 +139,6 @@ var PerlHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "string", token : "string",
merge : true,
regex : '.+' regex : '.+'
} }
] ]

View file

@ -449,7 +449,6 @@ var PgsqlHighlightRules = function() {
DocCommentHighlightRules.getStartRule("doc-start"), DocCommentHighlightRules.getStartRule("doc-start"),
{ {
token : "comment", // multi-line comment token : "comment", // multi-line comment
merge : true,
regex : "\\/\\*", regex : "\\/\\*",
next : "comment" next : "comment"
},{ },{
@ -468,7 +467,6 @@ var PgsqlHighlightRules = function() {
regex : "--.*$" regex : "--.*$"
}, { }, {
token : "comment", // multi-line comment token : "comment", // multi-line comment
merge : true,
regex : "\\/\\*", regex : "\\/\\*",
next : "commentStatement" next : "commentStatement"
}, { }, {
@ -500,7 +498,6 @@ var PgsqlHighlightRules = function() {
regex : "--.*$" regex : "--.*$"
}, { }, {
token : "comment", // multi-line comment token : "comment", // multi-line comment
merge : true,
regex : "\\/\\*", regex : "\\/\\*",
next : "commentDollarSql" next : "commentDollarSql"
}, { }, {
@ -521,7 +518,6 @@ var PgsqlHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "comment", // comment spanning whole line token : "comment", // comment spanning whole line
merge : true,
regex : ".+" regex : ".+"
} }
], ],
@ -533,7 +529,6 @@ var PgsqlHighlightRules = function() {
next : "statement" next : "statement"
}, { }, {
token : "comment", // comment spanning whole line token : "comment", // comment spanning whole line
merge : true,
regex : ".+" regex : ".+"
} }
], ],
@ -545,7 +540,6 @@ var PgsqlHighlightRules = function() {
next : "dollarSql" next : "dollarSql"
}, { }, {
token : "comment", // comment spanning whole line token : "comment", // comment spanning whole line
merge : true,
regex : ".+" regex : ".+"
} }
], ],
@ -557,7 +551,6 @@ var PgsqlHighlightRules = function() {
next : "statement" next : "statement"
}, { }, {
token : "string", // dollarstring spanning whole line token : "string", // dollarstring spanning whole line
merge : true,
regex : ".+" regex : ".+"
} }
], ],
@ -569,7 +562,6 @@ var PgsqlHighlightRules = function() {
next : "dollarSql" next : "dollarSql"
}, { }, {
token : "string", // dollarstring spanning whole line token : "string", // dollarstring spanning whole line
merge : true,
regex : ".+" regex : ".+"
} }
] ]

View file

@ -127,15 +127,12 @@ var PowershellHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "doc.comment.tag", token : "doc.comment.tag",
merge : true,
regex : "^\\.\\w+" regex : "^\\.\\w+"
}, { }, {
token : "comment", token : "comment",
merge : true,
regex : "\\w+" regex : "\\w+"
}, { }, {
token : "comment", token : "comment",
merge : true,
regex : "." regex : "."
} }
] ]

View file

@ -93,7 +93,6 @@ var PythonHighlightRules = function() {
regex : strPre + '"{3}(?:[^\\\\]|\\\\.)*?"{3}' regex : strPre + '"{3}(?:[^\\\\]|\\\\.)*?"{3}'
}, { }, {
token : "string", // multi line """ string start token : "string", // multi line """ string start
merge : true,
regex : strPre + '"{3}.*$', regex : strPre + '"{3}.*$',
next : "qqstring" next : "qqstring"
}, { }, {
@ -104,7 +103,6 @@ var PythonHighlightRules = function() {
regex : strPre + "'{3}(?:[^\\\\]|\\\\.)*?'{3}" regex : strPre + "'{3}(?:[^\\\\]|\\\\.)*?'{3}"
}, { }, {
token : "string", // multi line ''' string start token : "string", // multi line ''' string start
merge : true,
regex : strPre + "'{3}.*$", regex : strPre + "'{3}.*$",
next : "qstring" next : "qstring"
}, { }, {
@ -144,7 +142,6 @@ var PythonHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "string", token : "string",
merge : true,
regex : '.+' regex : '.+'
} ], } ],
"qstring" : [ { "qstring" : [ {
@ -153,7 +150,6 @@ var PythonHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "string", token : "string",
merge : true,
regex : '.+' regex : '.+'
} ] } ]
}; };

View file

@ -18,17 +18,14 @@
define(function(require, exports, module) { define(function(require, exports, module) {
"use strict"; "use strict";
var Editor = require("ace/editor").Editor; var Range = require("../range").Range;
var EditSession = require("ace/edit_session").EditSession; var oop = require("../lib/oop");
var Range = require("ace/range").Range; var TextMode = require("./text").Mode;
var oop = require("ace/lib/oop"); var Tokenizer = require("../tokenizer").Tokenizer;
var TextMode = require("ace/mode/text").Mode; var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
var Tokenizer = require("ace/tokenizer").Tokenizer;
var TextHighlightRules = require("ace/mode/text_highlight_rules")
.TextHighlightRules;
var RHighlightRules = require("./r_highlight_rules").RHighlightRules; var RHighlightRules = require("./r_highlight_rules").RHighlightRules;
var MatchingBraceOutdent = require("ace/mode/matching_brace_outdent").MatchingBraceOutdent; var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
var unicode = require("ace/unicode"); var unicode = require("../unicode");
var Mode = function() var Mode = function()
{ {

View file

@ -18,10 +18,9 @@
define(function(require, exports, module) define(function(require, exports, module)
{ {
var oop = require("ace/lib/oop"); var oop = require("../lib/oop");
var lang = require("ace/lib/lang"); var lang = require("../lib/lang");
var TextHighlightRules = require("ace/mode/text_highlight_rules") var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
.TextHighlightRules;
var TexHighlightRules = require("./tex_highlight_rules").TexHighlightRules; var TexHighlightRules = require("./tex_highlight_rules").TexHighlightRules;
var RHighlightRules = function() var RHighlightRules = function()

View file

@ -13,12 +13,12 @@
define(function(require, exports, module) { define(function(require, exports, module) {
"use strict"; "use strict";
var oop = require("ace/lib/oop"); var oop = require("../lib/oop");
var TextMode = require("ace/mode/text").Mode; var TextMode = require("./text").Mode;
var Tokenizer = require("ace/tokenizer").Tokenizer; var Tokenizer = require("../tokenizer").Tokenizer;
var TextHighlightRules = require("ace/mode/text_highlight_rules").TextHighlightRules; var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
var RDocHighlightRules = require("./rdoc_highlight_rules").RDocHighlightRules; var RDocHighlightRules = require("./rdoc_highlight_rules").RDocHighlightRules;
var MatchingBraceOutdent = require("ace/mode/matching_brace_outdent").MatchingBraceOutdent; var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
var Mode = function(suppressHighlighting) { var Mode = function(suppressHighlighting) {
this.$tokenizer = new Tokenizer(new RDocHighlightRules().getRules()); this.$tokenizer = new Tokenizer(new RDocHighlightRules().getRules());

View file

@ -13,8 +13,8 @@
define(function(require, exports, module) { define(function(require, exports, module) {
"use strict"; "use strict";
var oop = require("ace/lib/oop"); var oop = require("../lib/oop");
var lang = require("ace/lib/lang"); var lang = require("../lib/lang");
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
var LaTeXHighlightRules = require("./latex_highlight_rules"); var LaTeXHighlightRules = require("./latex_highlight_rules");

View file

@ -19,9 +19,9 @@
define(function(require, exports, module) { define(function(require, exports, module) {
"use strict"; "use strict";
var oop = require("ace/lib/oop"); var oop = require("../lib/oop");
var HtmlMode = require("ace/mode/html").Mode; var HtmlMode = require("./html").Mode;
var Tokenizer = require("ace/tokenizer").Tokenizer; var Tokenizer = require("../tokenizer").Tokenizer;
var RHtmlHighlightRules = require("./rhtml_highlight_rules").RHtmlHighlightRules; var RHtmlHighlightRules = require("./rhtml_highlight_rules").RHtmlHighlightRules;
/* Make life easier, don't do these right now /* Make life easier, don't do these right now

View file

@ -18,7 +18,7 @@
define(function(require, exports, module) { define(function(require, exports, module) {
"use strict"; "use strict";
var oop = require("ace/lib/oop"); var oop = require("../lib/oop");
var RHighlightRules = require("./r_highlight_rules").RHighlightRules; var RHighlightRules = require("./r_highlight_rules").RHighlightRules;
var HtmlHighlightRules = require("./html_highlight_rules").HtmlHighlightRules; var HtmlHighlightRules = require("./html_highlight_rules").HtmlHighlightRules;
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;

View file

@ -134,7 +134,6 @@ var RubyHighlightRules = function() {
regex : "#.*$" regex : "#.*$"
}, { }, {
token : "comment", // multi line comment token : "comment", // multi line comment
merge : true,
regex : "^=begin\\s", regex : "^=begin\\s",
next : "comment" next : "comment"
}, { }, {
@ -193,7 +192,6 @@ var RubyHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "comment", // comment spanning whole line token : "comment", // comment spanning whole line
merge : true,
regex : ".+" regex : ".+"
} }
] ]

View file

@ -55,7 +55,6 @@ var scadHighlightRules = function() {
DocCommentHighlightRules.getStartRule("start"), DocCommentHighlightRules.getStartRule("start"),
{ {
token : "comment", // multi line comment token : "comment", // multi line comment
merge : true,
regex : "\\/\\*", regex : "\\/\\*",
next : "comment" next : "comment"
}, { }, {
@ -108,7 +107,6 @@ var scadHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "comment", // comment spanning whole line token : "comment", // comment spanning whole line
merge : true,
regex : ".+" regex : ".+"
} }
], ],
@ -119,7 +117,6 @@ var scadHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "string", token : "string",
merge : true,
regex : '.+' regex : '.+'
} }
], ],
@ -130,7 +127,6 @@ var scadHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "string", token : "string",
merge : true,
regex : '.+' regex : '.+'
} }
] ]

View file

@ -67,7 +67,6 @@ var ScalaHighlightRules = function() {
DocCommentHighlightRules.getStartRule("doc-start"), DocCommentHighlightRules.getStartRule("doc-start"),
{ {
token : "comment", // multi line comment token : "comment", // multi line comment
merge : true,
regex : "\\/\\*", regex : "\\/\\*",
next : "comment" next : "comment"
}, { }, {
@ -119,7 +118,6 @@ var ScalaHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "comment", // comment spanning whole line token : "comment", // comment spanning whole line
merge : true,
regex : ".+" regex : ".+"
} }
], ],
@ -129,7 +127,6 @@ var ScalaHighlightRules = function() {
regex : '\\\\"' regex : '\\\\"'
}, { }, {
token : "string", token : "string",
merge : true,
regex : '"', regex : '"',
next : "start" next : "start"
}, { }, {
@ -138,8 +135,7 @@ var ScalaHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "string", token : "string",
regex : '[^"\\\\]+', regex : '[^"\\\\]+'
merge : true
} }
], ],
"tstring" : [ "tstring" : [
@ -149,7 +145,6 @@ var ScalaHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "string", // comment spanning whole line token : "string", // comment spanning whole line
merge : true,
regex : ".+?" regex : ".+?"
} }
] ]

View file

@ -176,7 +176,6 @@ var ScssHighlightRules = function() {
}, },
{ {
token : "comment", // multi line comment token : "comment", // multi line comment
merge : true,
regex : "\\/\\*", regex : "\\/\\*",
next : "comment" next : "comment"
}, { }, {
@ -184,7 +183,6 @@ var ScssHighlightRules = function() {
regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]' regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
}, { }, {
token : "string", // multi line string start token : "string", // multi line string start
merge : true,
regex : '["].*\\\\$', regex : '["].*\\\\$',
next : "qqstring" next : "qqstring"
}, { }, {
@ -192,7 +190,6 @@ var ScssHighlightRules = function() {
regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']" regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
}, { }, {
token : "string", // multi line string start token : "string", // multi line string start
merge : true,
regex : "['].*\\\\$", regex : "['].*\\\\$",
next : "qstring" next : "qstring"
}, { }, {
@ -261,7 +258,6 @@ var ScssHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "comment", // comment spanning whole line token : "comment", // comment spanning whole line
merge : true,
regex : ".+" regex : ".+"
} }
], ],
@ -272,7 +268,6 @@ var ScssHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "string", token : "string",
merge : true,
regex : '.+' regex : '.+'
} }
], ],
@ -283,7 +278,6 @@ var ScssHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "string", token : "string",
merge : true,
regex : '.+' regex : '.+'
} }
] ]

View file

@ -21,8 +21,7 @@ var StylusHighlightRules = function() {
"support.constant.fonts": CssHighlightRules.supportConstantFonts "support.constant.fonts": CssHighlightRules.supportConstantFonts
}, "text", true); }, "text", true);
this.$rules = this.$rules = {
{
"start": [ "start": [
{ {
token : "comment", token : "comment",
@ -30,7 +29,6 @@ var StylusHighlightRules = function() {
}, },
{ {
token : "comment", // multi line comment token : "comment", // multi line comment
merge : true,
regex : /\/\*/, regex : /\/\*/,
next : "comment" next : "comment"
}, },
@ -82,16 +80,16 @@ var StylusHighlightRules = function() {
"regex": "-webkit-|-moz\\-|-ms-|-o-" "regex": "-webkit-|-moz\\-|-ms-|-o-"
}, },
{ {
"token": ["keyword.control.stylus"], "token": "keyword.control.stylus",
"regex": "(?:\\b|\\s)(!important|for|in|return|true|false|null|if|else|unless|return)(?:\\b)" "regex": "(?:!important|for|in|return|true|false|null|if|else|unless|return)\\b"
}, },
{ {
"token": ["keyword.operator.stylus"], "token": "keyword.operator.stylus",
"regex": "((?:!|~|\\+|-|(?:\\*)?\\*|\\/|%|(?:\\.)\\.\\.|<|>|(?:=|:|\\?|\\+|-|\\*|\\/|%|<|>)?=|!=))" "regex": "!|~|\\+|-|(?:\\*)?\\*|\\/|%|(?:\\.)\\.\\.|<|>|(?:=|:|\\?|\\+|-|\\*|\\/|%|<|>)?=|!="
}, },
{ {
"token": ["keyword.operator.stylus"], "token": "keyword.operator.stylus",
"regex": "(?:\\b)(in|is(?:nt)?|not)(?:\\b)" "regex": "(?:in|is(?:nt)?|not)\\b"
}, },
{ {
token : "string", token : "string",
@ -107,8 +105,8 @@ var StylusHighlightRules = function() {
regex : CssHighlightRules.numRe regex : CssHighlightRules.numRe
}, },
{ {
token : ["keyword"], token : "keyword",
regex : "(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vm|vw|%)" regex : "(?:ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vm|vw|%)\\b"
}, },
{ {
token : keywordMapper, token : keywordMapper,
@ -119,50 +117,42 @@ var StylusHighlightRules = function() {
{ {
token : "comment", // closing comment token : "comment", // closing comment
regex : ".*?\\*\\/", regex : ".*?\\*\\/",
merge : true,
next : "start" next : "start"
}, { }, {
token : "comment", // comment spanning whole line token : "comment", // comment spanning whole line
merge : true,
regex : ".+" regex : ".+"
} }
], ],
"qqstring" : [ "qqstring" : [
{ {
token : "string", token : "string",
regex : '[^"\\\\]+', regex : '[^"\\\\]+'
merge : true
}, },
{ {
token : "string", token : "string",
regex : "\\\\$", regex : "\\\\$",
next : "qqstring", next : "qqstring"
merge : true
}, },
{ {
token : "string", token : "string",
regex : '"|$', regex : '"|$',
next : "start", next : "start"
merge : true
} }
], ],
"qstring" : [ "qstring" : [
{ {
token : "string", token : "string",
regex : "[^'\\\\]+", regex : "[^'\\\\]+"
merge : true
}, },
{ {
token : "string", token : "string",
regex : "\\\\$", regex : "\\\\$",
next : "qstring", next : "qstring"
merge : true
}, },
{ {
token : "string", token : "string",
regex : "'|$", regex : "'|$",
next : "start", next : "start"
merge : true
} }
] ]
} }

View file

@ -42,7 +42,6 @@ var TclHighlightRules = function() {
"start" : [ "start" : [
{ {
token : "comment", token : "comment",
merge : true,
regex : "#.*\\\\$", regex : "#.*\\\\$",
next : "commentfollow" next : "commentfollow"
}, { }, {
@ -64,12 +63,10 @@ var TclHighlightRules = function() {
regex : '[ ]*["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]' regex : '[ ]*["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
}, { }, {
token : "string", // multi line """ string start token : "string", // multi line """ string start
merge : true,
regex : '[ ]*["]', regex : '[ ]*["]',
next : "qqstring" next : "qqstring"
}, { }, {
token : "variable.instancce", // variable xotcl with braces token : "variable.instancce", // variable xotcl with braces
merge : true,
regex : "[$]", regex : "[$]",
next : "variable" next : "variable"
}, { }, {
@ -96,7 +93,6 @@ var TclHighlightRules = function() {
"commandItem" : [ "commandItem" : [
{ {
token : "comment", token : "comment",
merge : true,
regex : "#.*\\\\$", regex : "#.*\\\\$",
next : "commentfollow" next : "commentfollow"
}, { }, {
@ -108,7 +104,6 @@ var TclHighlightRules = function() {
regex : '[ ]*["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]' regex : '[ ]*["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
}, { }, {
token : "variable.instancce", // variable xotcl with braces token : "variable.instancce", // variable xotcl with braces
merge : true,
regex : "[$]", regex : "[$]",
next : "variable" next : "variable"
}, { }, {
@ -138,7 +133,6 @@ var TclHighlightRules = function() {
next : "commentfollow" next : "commentfollow"
}, { }, {
token : "comment", token : "comment",
merge : true,
regex : '.+', regex : '.+',
next : "start" next : "start"
} ], } ],
@ -168,7 +162,6 @@ var TclHighlightRules = function() {
next : "start" next : "start"
}, { }, {
token : "string", token : "string",
merge : true,
regex : '.+' regex : '.+'
} ] } ]
}; };

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