code_rippa 0.0.7 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile.lock +36 -0
- data/LICENSE +2 -2
- data/README.md +18 -1
- data/bin/code_rippa +15 -16
- data/code_rippa.gemspec +12 -10
- data/lib/code_rippa.rb +69 -51
- data/lib/code_rippa/syntax/actionscript.syntax +52 -52
- data/lib/code_rippa/syntax/active4d.syntax +226 -180
- data/lib/code_rippa/syntax/active4d_html.syntax +163 -173
- data/lib/code_rippa/syntax/active4d_ini.syntax +34 -27
- data/lib/code_rippa/syntax/active4d_library.syntax +8 -15
- data/lib/code_rippa/syntax/ada.syntax +19 -18
- data/lib/code_rippa/syntax/antlr.syntax +85 -85
- data/lib/code_rippa/syntax/apache.syntax +103 -109
- data/lib/code_rippa/syntax/applescript.syntax +244 -229
- data/lib/code_rippa/syntax/asp.syntax +41 -36
- data/lib/code_rippa/syntax/asp_vb.net.syntax +77 -72
- data/lib/code_rippa/syntax/bibtex.syntax +88 -90
- data/lib/code_rippa/syntax/blog_html.syntax +17 -29
- data/lib/code_rippa/syntax/blog_markdown.syntax +17 -27
- data/lib/code_rippa/syntax/blog_text.syntax +15 -15
- data/lib/code_rippa/syntax/blog_textile.syntax +15 -15
- data/lib/code_rippa/syntax/build.syntax +27 -27
- data/lib/code_rippa/syntax/bulletin_board.syntax +159 -172
- data/lib/code_rippa/syntax/c.syntax +31 -34
- data/lib/code_rippa/syntax/cake.syntax +27 -27
- data/lib/code_rippa/syntax/camlp4.syntax +23 -23
- data/lib/code_rippa/syntax/cm.syntax +19 -18
- data/lib/code_rippa/syntax/coffeescript.syntax +134 -181
- data/lib/code_rippa/syntax/coldfusion.syntax +51 -60
- data/lib/code_rippa/syntax/context_free.syntax +106 -106
- data/lib/code_rippa/syntax/cs.syntax +31 -34
- data/lib/code_rippa/syntax/css.syntax +112 -112
- data/lib/code_rippa/syntax/css_experimental.syntax +1006 -1004
- data/lib/code_rippa/syntax/csv.syntax +40 -44
- data/lib/code_rippa/syntax/d.syntax +80 -84
- data/lib/code_rippa/syntax/diff.syntax +46 -45
- data/lib/code_rippa/syntax/dokuwiki.syntax +118 -119
- data/lib/code_rippa/syntax/dot.syntax +26 -26
- data/lib/code_rippa/syntax/doxygen.syntax +26 -26
- data/lib/code_rippa/syntax/dylan.syntax +35 -35
- data/lib/code_rippa/syntax/eiffel.syntax +39 -42
- data/lib/code_rippa/syntax/erlang.syntax +514 -511
- data/lib/code_rippa/syntax/f-script.syntax +44 -44
- data/lib/code_rippa/syntax/fortran.syntax +80 -76
- data/lib/code_rippa/syntax/fxscript.syntax +78 -77
- data/lib/code_rippa/syntax/greasemonkey.syntax +20 -20
- data/lib/code_rippa/syntax/gri.syntax +47 -47
- data/lib/code_rippa/syntax/groovy.syntax +105 -114
- data/lib/code_rippa/syntax/gtd.syntax +10 -10
- data/lib/code_rippa/syntax/gtdalt.syntax +83 -83
- data/lib/code_rippa/syntax/haml.syntax +50 -50
- data/lib/code_rippa/syntax/haskell.syntax +47 -47
- data/lib/code_rippa/syntax/html-asp.syntax +15 -15
- data/lib/code_rippa/syntax/html_django.syntax +15 -14
- data/lib/code_rippa/syntax/html_for_asp.net.syntax +232 -245
- data/lib/code_rippa/syntax/html_mason.syntax +75 -74
- data/lib/code_rippa/syntax/html_rails.syntax +17 -27
- data/lib/code_rippa/syntax/html_tcl.syntax +13 -13
- data/lib/code_rippa/syntax/icalendar.syntax +15 -15
- data/lib/code_rippa/syntax/inform.syntax +26 -26
- data/lib/code_rippa/syntax/ini.syntax +30 -30
- data/lib/code_rippa/syntax/installer_distribution_script.syntax +49 -49
- data/lib/code_rippa/syntax/io.syntax +49 -46
- data/lib/code_rippa/syntax/java.syntax +117 -126
- data/lib/code_rippa/syntax/javaproperties.syntax +13 -12
- data/lib/code_rippa/syntax/javascript.syntax +141 -141
- data/lib/code_rippa/syntax/javascript_+_prototype.syntax +42 -41
- data/lib/code_rippa/syntax/javascript_+_prototype_bracketed.syntax +92 -91
- data/lib/code_rippa/syntax/jquery_javascript.syntax +64 -64
- data/lib/code_rippa/syntax/json.syntax +39 -39
- data/lib/code_rippa/syntax/languagedefinition.syntax +373 -453
- data/lib/code_rippa/syntax/lexflex.syntax +136 -136
- data/lib/code_rippa/syntax/lighttpd.syntax +31 -31
- data/lib/code_rippa/syntax/lilypond.syntax +246 -337
- data/lib/code_rippa/syntax/lisp.syntax +32 -32
- data/lib/code_rippa/syntax/literate_haskell.syntax +12 -12
- data/lib/code_rippa/syntax/logo.syntax +13 -14
- data/lib/code_rippa/syntax/logtalk.syntax +81 -81
- data/lib/code_rippa/syntax/lua.syntax +50 -48
- data/lib/code_rippa/syntax/m.syntax +78 -78
- data/lib/code_rippa/syntax/macports_portfile.syntax +98 -97
- data/lib/code_rippa/syntax/makefile.syntax +19 -19
- data/lib/code_rippa/syntax/man.syntax +9 -9
- data/lib/code_rippa/syntax/mediawiki.syntax +311 -401
- data/lib/code_rippa/syntax/mips.syntax +34 -34
- data/lib/code_rippa/syntax/mod_perl.syntax +25 -31
- data/lib/code_rippa/syntax/modula-3.syntax +24 -24
- data/lib/code_rippa/syntax/moinmoin.syntax +102 -102
- data/lib/code_rippa/syntax/mootools.syntax +283 -300
- data/lib/code_rippa/syntax/movable_type.syntax +91 -90
- data/lib/code_rippa/syntax/multimarkdown.syntax +19 -30
- data/lib/code_rippa/syntax/objective-c++.syntax +6 -10
- data/lib/code_rippa/syntax/objective-c.syntax +134 -138
- data/lib/code_rippa/syntax/ocaml.syntax +455 -453
- data/lib/code_rippa/syntax/ocamllex.syntax +94 -93
- data/lib/code_rippa/syntax/ocamlyacc.syntax +98 -98
- data/lib/code_rippa/syntax/opengl.syntax +6 -6
- data/lib/code_rippa/syntax/pascal.syntax +43 -42
- data/lib/code_rippa/syntax/perl.syntax +612 -615
- data/lib/code_rippa/syntax/plain_text.syntax +17 -20
- data/lib/code_rippa/syntax/postscript.syntax +71 -69
- data/lib/code_rippa/syntax/processing.syntax +60 -60
- data/lib/code_rippa/syntax/prolog.syntax +17 -20
- data/lib/code_rippa/syntax/property_list.syntax +338 -359
- data/lib/code_rippa/syntax/python.syntax +487 -509
- data/lib/code_rippa/syntax/python_django.syntax +9 -10
- data/lib/code_rippa/syntax/qmake_project.syntax +67 -67
- data/lib/code_rippa/syntax/qt_c++.syntax +12 -15
- data/lib/code_rippa/syntax/quake3_config.syntax +18 -17
- data/lib/code_rippa/syntax/r.syntax +42 -42
- data/lib/code_rippa/syntax/r_console.syntax +7 -8
- data/lib/code_rippa/syntax/ragel.syntax +109 -115
- data/lib/code_rippa/syntax/rd_r_documentation.syntax +53 -53
- data/lib/code_rippa/syntax/regexp.syntax +26 -26
- data/lib/code_rippa/syntax/release_notes.syntax +46 -26
- data/lib/code_rippa/syntax/remind.syntax +146 -146
- data/lib/code_rippa/syntax/restructuredtext.syntax +132 -131
- data/lib/code_rippa/syntax/rez.syntax +46 -45
- data/lib/code_rippa/syntax/ruby.syntax +533 -601
- data/lib/code_rippa/syntax/ruby_experimental.syntax +82 -100
- data/lib/code_rippa/syntax/ruby_on_rails.syntax +56 -68
- data/lib/code_rippa/syntax/s5.syntax +35 -51
- data/lib/code_rippa/syntax/scheme.syntax +162 -260
- data/lib/code_rippa/syntax/scilab.syntax +18 -18
- data/lib/code_rippa/syntax/setext.syntax +82 -82
- data/lib/code_rippa/syntax/shell-unix-generic.syntax +227 -226
- data/lib/code_rippa/syntax/slate.syntax +91 -91
- data/lib/code_rippa/syntax/sql.syntax +137 -139
- data/lib/code_rippa/syntax/sql_rails.syntax +8 -8
- data/lib/code_rippa/syntax/ssh-config.syntax +17 -17
- data/lib/code_rippa/syntax/standard_ml.syntax +67 -69
- data/lib/code_rippa/syntax/strings_file.syntax +20 -23
- data/lib/code_rippa/syntax/subversion_commit_message.syntax +20 -20
- data/lib/code_rippa/syntax/sweave.syntax +45 -45
- data/lib/code_rippa/syntax/swig.syntax +34 -33
- data/lib/code_rippa/syntax/tcl.syntax +87 -86
- data/lib/code_rippa/syntax/template_toolkit.syntax +67 -65
- data/lib/code_rippa/syntax/textile.syntax +111 -145
- data/lib/code_rippa/syntax/tsv.syntax +31 -33
- data/lib/code_rippa/syntax/twiki.syntax +141 -141
- data/lib/code_rippa/syntax/txt2tags.syntax +39 -38
- data/lib/code_rippa/syntax/vectorscript.syntax +31 -31
- data/lib/code_rippa/syntax/xhtml_1.0.syntax +2297 -2296
- data/lib/code_rippa/syntax/xml.syntax +95 -95
- data/lib/code_rippa/syntax/xml_strict.syntax +49 -50
- data/lib/code_rippa/syntax/xsl.syntax +31 -31
- data/lib/code_rippa/syntax/yaml.syntax +86 -86
- data/lib/code_rippa/syntax/yaml_converter.rb +37 -0
- data/lib/code_rippa/syntax/yui_javascript.syntax +88 -88
- data/lib/code_rippa/version.rb +2 -2
- data/test/fixtures/hello.rb +5 -3
- data/test/test_private_methods.rb +40 -40
- data/test/test_public_methods.rb +9 -18
- metadata +61 -63
@@ -1,6 +1,6 @@
|
|
1
|
-
---
|
1
|
+
---
|
2
2
|
name: Lisp
|
3
|
-
fileTypes:
|
3
|
+
fileTypes:
|
4
4
|
- lisp
|
5
5
|
- cl
|
6
6
|
- l
|
@@ -8,54 +8,54 @@ fileTypes:
|
|
8
8
|
- el
|
9
9
|
scopeName: source.lisp
|
10
10
|
uuid: 00D451C9-6B1D-11D9-8DFA-000D93589AF6
|
11
|
-
foldingStartMarker:
|
12
|
-
patterns:
|
11
|
+
foldingStartMarker: "\\("
|
12
|
+
patterns:
|
13
13
|
- name: comment.line.semicolon.lisp
|
14
|
-
captures:
|
15
|
-
|
14
|
+
captures:
|
15
|
+
'1':
|
16
16
|
name: punctuation.definition.comment.lisp
|
17
|
-
match: (;)
|
17
|
+
match: "(;).*$\\n?"
|
18
18
|
- name: meta.function.lisp
|
19
|
-
captures:
|
20
|
-
|
19
|
+
captures:
|
20
|
+
'2':
|
21
21
|
name: storage.type.function-type.lisp
|
22
|
-
|
22
|
+
'4':
|
23
23
|
name: entity.name.function.lisp
|
24
|
-
match: (
|
24
|
+
match: "(\\b(?i:(defun|defmethod|defmacro))\\b)(\\s+)((\\w|\\-|\\!|\\?)*)"
|
25
25
|
- name: constant.character.lisp
|
26
|
-
captures:
|
27
|
-
|
26
|
+
captures:
|
27
|
+
'1':
|
28
28
|
name: punctuation.definition.constant.lisp
|
29
|
-
match: (#)(
|
29
|
+
match: "(#)(\\w|[\\\\+-=<>'\"&#])+"
|
30
30
|
- name: variable.other.global.lisp
|
31
|
-
captures:
|
32
|
-
|
31
|
+
captures:
|
32
|
+
'1':
|
33
33
|
name: punctuation.definition.variable.lisp
|
34
|
-
|
34
|
+
'3':
|
35
35
|
name: punctuation.definition.variable.lisp
|
36
|
-
match: (
|
36
|
+
match: "(\\*)(\\S*)(\\*)"
|
37
37
|
- name: keyword.control.lisp
|
38
|
-
match:
|
38
|
+
match: "\\b(?i:case|do|let|loop|if|else|when)\\b"
|
39
39
|
- name: keyword.operator.lisp
|
40
|
-
match:
|
40
|
+
match: "\\b(?i:eq|neq|and|or)\\b"
|
41
41
|
- name: constant.language.lisp
|
42
|
-
match:
|
42
|
+
match: "\\b(?i:null|nil)\\b"
|
43
43
|
- name: support.function.lisp
|
44
|
-
match:
|
44
|
+
match: "\\b(?i:cons|car|cdr|cond|lambda|format|setq|setf|quote|eval|append|list|listp|memberp|t|load|progn)\\b"
|
45
45
|
- name: constant.numeric.lisp
|
46
|
-
match:
|
46
|
+
match: "\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?\\b"
|
47
47
|
- name: string.quoted.double.lisp
|
48
|
-
endCaptures:
|
49
|
-
|
48
|
+
endCaptures:
|
49
|
+
'0':
|
50
50
|
name: punctuation.definition.string.end.lisp
|
51
51
|
begin: "\""
|
52
|
-
beginCaptures:
|
53
|
-
|
52
|
+
beginCaptures:
|
53
|
+
'0':
|
54
54
|
name: punctuation.definition.string.begin.lisp
|
55
55
|
end: "\""
|
56
|
-
patterns:
|
56
|
+
patterns:
|
57
57
|
- name: constant.character.escape.lisp
|
58
|
-
match:
|
59
|
-
foldingStopMarker:
|
60
|
-
keyEquivalent: ^~L
|
61
|
-
comment:
|
58
|
+
match: "\\\\."
|
59
|
+
foldingStopMarker: "\\)"
|
60
|
+
keyEquivalent: "^~L"
|
61
|
+
comment: ''
|
@@ -1,24 +1,24 @@
|
|
1
|
-
---
|
1
|
+
---
|
2
2
|
name: Literate Haskell
|
3
|
-
fileTypes:
|
3
|
+
fileTypes:
|
4
4
|
- lhs
|
5
5
|
scopeName: text.tex.latex.haskell
|
6
6
|
uuid: 439807F5-7129-487D-B5DC-95D5272B43DD
|
7
|
-
patterns:
|
7
|
+
patterns:
|
8
8
|
- name: meta.function.embedded.haskell.latex
|
9
|
-
captures:
|
10
|
-
|
9
|
+
captures:
|
10
|
+
'1':
|
11
11
|
name: support.function.be.latex
|
12
|
-
|
12
|
+
'2':
|
13
13
|
name: punctuation.definition.function.latex
|
14
|
-
|
14
|
+
'3':
|
15
15
|
name: punctuation.definition.arguments.begin.latex
|
16
|
-
|
16
|
+
'4':
|
17
17
|
name: punctuation.definition.arguments.end.latex
|
18
|
-
begin: ^((
|
18
|
+
begin: "^((\\\\)begin)({)code(})(\\s*\\n)?"
|
19
19
|
contentName: source.haskell.embedded.latex
|
20
|
-
end: ^((
|
21
|
-
patterns:
|
20
|
+
end: "^((\\\\)end)({)code(})"
|
21
|
+
patterns:
|
22
22
|
- include: source.haskell
|
23
23
|
- include: text.tex.latex
|
24
|
-
keyEquivalent: ^~H
|
24
|
+
keyEquivalent: "^~H"
|
@@ -1,29 +1,28 @@
|
|
1
|
-
---
|
1
|
+
---
|
2
2
|
name: Logo
|
3
3
|
fileTypes: []
|
4
|
-
|
5
4
|
scopeName: source.logo
|
6
5
|
uuid: 7613EC24-B0F9-4D01-8706-1D54098BFFD8
|
7
|
-
foldingStartMarker: ^to
|
8
|
-
patterns:
|
6
|
+
foldingStartMarker: "^to \\w+"
|
7
|
+
patterns:
|
9
8
|
- name: entity.name.function.logo
|
10
|
-
match: ^to [
|
9
|
+
match: "^to [\\w.]+"
|
11
10
|
- name: keyword.control.logo
|
12
11
|
match: continue|do\.until|do\.while|end|for(each)?|if(else|falsetrue|)|repeat|stop|until
|
13
12
|
- name: keyword.other.logo
|
14
|
-
match:
|
13
|
+
match: "\\b(\\.defmacro|\\.eq|\\.macro|\\.maybeoutput|\\.setbf|\\.setfirst|\\.setitem|\\.setsegmentsize|allopen|allowgetset|and|apply|arc|arctan|arity|array|arrayp|arraytolist|ascii|ashift|back|background|backslashedp|beforep|bitand|bitnot|bitor|bitxor|buried|buriedp|bury|buryall|buryname|butfirst|butfirsts|butlast|bye|cascade|case|caseignoredp|catch|char|clean|clearscreen|cleartext|close|closeall|combine|cond|contents|copydef|cos|count|crossmap|cursor|define|definedp|dequeue|difference|dribble|edall|edit|editfile|edn|edns|edpl|edpls|edps|emptyp|eofp|epspict|equalp|erall|erase|erasefile|ern|erns|erpl|erpls|erps|erract|error|exp|fence|filep|fill|filter|find|first|firsts|forever|form|forward|fput|fullprintp|fullscreen|fulltext|gc|gensym|global|goto|gprop|greaterp|heading|help|hideturtle|home|ignore|int|invoke|iseq|item|keyp|label|last|left|lessp|list|listp|listtoarray|ln|load|loadnoisily|loadpict|local|localmake|log10|lowercase|lput|lshift|macroexpand|macrop|make|map|map.se|mdarray|mditem|mdsetitem|member|memberp|minus|modulo|name|namelist|namep|names|nodes|nodribble|norefresh|not|numberp|openappend|openread|openupdate|openwrite|or|output|palette|parse|pause|pen|pencolor|pendown|pendownp|penerase|penmode|penpaint|penreverse|pensize|penup|pick|plist|plistp|plists|pllist|po|poall|pon|pons|pop|popl|popls|pops|pos|pot|pots|power|pprop|prefix|primitivep|print|printdepthlimit|printwidthlimit|procedurep|procedures|product|push|queue|quoted|quotient|radarctan|radcos|radsin|random|rawascii|readchar|readchars|reader|readlist|readpos|readrawline|readword|redefp|reduce|refresh|remainder|remdup|remove|remprop|repcount|rerandom|reverse|right|round|rseq|run|runparse|runresult|save|savel|savepict|screenmode|scrunch|sentence|setbackground|setcursor|seteditor|setheading|sethelploc|setitem|setlibloc|setmargins|setpalette|setpen|setpencolor|setpensize|setpos|setprefix|setread|setreadpos|setscrunch|settemploc|settextcolor|setwrite|setwritepos|setx|setxy|sety|shell|show|shownp|showturtle|sin|splitscreen|sqrt|standout|startup|step|stepped|steppedp|substringp|sum|tag|test|text|textscreen|thing|throw|towards|trace|traced|tracedp|transfer|turtlemode|type|unbury|unburyall|unburyname|unburyonedit|unstep|untrace|uppercase|usealternatenam|wait|while|window|word|wordp|wrap|writepos|writer|xcor|ycor)\\b"
|
15
14
|
- name: variable.parameter.logo
|
16
|
-
captures:
|
17
|
-
|
15
|
+
captures:
|
16
|
+
'1':
|
18
17
|
name: punctuation.definition.variable.logo
|
19
|
-
match: (
|
18
|
+
match: "(\\:)(?:\\|[^|]*\\||[-\\w.]*)+"
|
20
19
|
- name: string.other.word.logo
|
21
20
|
match: "\"(?:\\|[^|]*\\||[-\\w.]*)+"
|
22
21
|
- name: comment.line.semicolon.logo
|
23
|
-
captures:
|
24
|
-
|
22
|
+
captures:
|
23
|
+
'1':
|
25
24
|
name: punctuation.definition.comment.logo
|
26
|
-
match: (;)
|
27
|
-
foldingStopMarker: ^end$
|
28
|
-
keyEquivalent: ^~L
|
25
|
+
match: "(;).*$\\n?"
|
26
|
+
foldingStopMarker: "^end$"
|
27
|
+
keyEquivalent: "^~L"
|
29
28
|
comment: Roughed out by Paul Bissex <http://e-scribe.com/news/>
|
@@ -1,152 +1,152 @@
|
|
1
|
-
---
|
1
|
+
---
|
2
2
|
name: Logtalk
|
3
|
-
fileTypes:
|
3
|
+
fileTypes:
|
4
4
|
- lgt
|
5
5
|
- config
|
6
6
|
scopeName: source.logtalk
|
7
7
|
uuid: C11FA1F2-6EDB-11D9-8798-000A95DAA580
|
8
|
-
foldingStartMarker: (
|
9
|
-
patterns:
|
8
|
+
foldingStartMarker: "(/\\*|:-\\s+(object|protocol|category)(?=[(]))"
|
9
|
+
patterns:
|
10
10
|
- name: comment.block.logtalk
|
11
|
-
captures:
|
12
|
-
|
11
|
+
captures:
|
12
|
+
'0':
|
13
13
|
name: punctuation.definition.comment.logtalk
|
14
|
-
begin:
|
15
|
-
end:
|
14
|
+
begin: "/\\*"
|
15
|
+
end: "\\*/"
|
16
16
|
- name: comment.line.percentage.logtalk
|
17
|
-
captures:
|
18
|
-
|
17
|
+
captures:
|
18
|
+
'1':
|
19
19
|
name: punctuation.definition.comment.logtalk
|
20
|
-
match: (%)
|
21
|
-
- captures:
|
22
|
-
|
20
|
+
match: "(%).*$\\n?"
|
21
|
+
- captures:
|
22
|
+
'1':
|
23
23
|
name: storage.type.opening.logtalk
|
24
|
-
|
24
|
+
'2':
|
25
25
|
name: punctuation.definition.storage.type.logtalk
|
26
|
-
|
26
|
+
'4':
|
27
27
|
name: entity.name.type.logtalk
|
28
|
-
match: ((:-)
|
28
|
+
match: "((:-)\\s+(object|protocol|category|module))(?:\\()([^(,)]+)"
|
29
29
|
- name: storage.type.closing.logtalk
|
30
|
-
captures:
|
31
|
-
|
30
|
+
captures:
|
31
|
+
'1':
|
32
32
|
name: punctuation.definition.storage.type.logtalk
|
33
|
-
match: (:-)
|
33
|
+
match: "(:-)\\s+(end_(object|protocol|category))(?=[.])"
|
34
34
|
- name: storage.type.relations.logtalk
|
35
|
-
match:
|
35
|
+
match: "\\b(extends|i(nstantiates|mp(orts|lements))|specializes)(?=[(])"
|
36
36
|
- name: storage.modifier.others.logtalk
|
37
|
-
captures:
|
38
|
-
|
37
|
+
captures:
|
38
|
+
'1':
|
39
39
|
name: punctuation.definition.storage.modifier.logtalk
|
40
|
-
match: (:-)
|
40
|
+
match: "(:-)\\s+(dynamic|threaded)(?=[.])"
|
41
41
|
- name: storage.modifier.others.logtalk
|
42
|
-
captures:
|
43
|
-
|
42
|
+
captures:
|
43
|
+
'1':
|
44
44
|
name: punctuation.definition.storage.modifier.logtalk
|
45
|
-
match: (:-)
|
45
|
+
match: "(:-)\\s+(calls|e(ncoding|xport)|in(itialization|fo)|uses)(?=[(])"
|
46
46
|
- name: storage.modifier.others.logtalk
|
47
|
-
captures:
|
48
|
-
|
47
|
+
captures:
|
48
|
+
'1':
|
49
49
|
name: punctuation.definition.storage.modifier.logtalk
|
50
|
-
match: (:-)
|
50
|
+
match: "(:-)\\s+(a(lias|tomic)|info|d(ynamic|iscontiguous)|m(eta_predicate|ode|ultifile)|p(ublic|r(otected|ivate))|op|use(s|_module))(?=[(])"
|
51
51
|
- name: keyword.operator.message-sending.logtalk
|
52
|
-
match: (
|
52
|
+
match: "(::|\\^\\^)"
|
53
53
|
- name: keyword.operator.mode.logtalk
|
54
|
-
match: (
|
54
|
+
match: "(\\?|@)"
|
55
55
|
- name: keyword.operator.comparison.term.logtalk
|
56
|
-
match: (
|
56
|
+
match: "(@=<|@<|@>|@>=|==|\\\\==)"
|
57
57
|
- name: keyword.operator.comparison.arithmetic.logtalk
|
58
|
-
match: (
|
58
|
+
match: "(=<|<|>|>=|=:=|=\\\\=)"
|
59
59
|
- name: keyword.operator.bitwise.logtalk
|
60
|
-
match: (
|
60
|
+
match: "(<<|>>|/\\\\|\\\\/|\\\\)"
|
61
61
|
- name: keyword.operator.evaluable.logtalk
|
62
|
-
match:
|
62
|
+
match: "\\b(mod|rem)\\b"
|
63
63
|
- name: keyword.operator.evaluable.logtalk
|
64
|
-
match: (
|
64
|
+
match: "(\\*\\*|\\+|-|\\*|/|//)"
|
65
65
|
- name: keyword.operator.misc.logtalk
|
66
|
-
match: (
|
66
|
+
match: "(:-|!|\\\\+|,|;|-->|->|=|\\=|\\.|=\\.\\.|\\bis\\b)"
|
67
67
|
- name: support.function.control.logtalk
|
68
|
-
match:
|
68
|
+
match: "\\b(true|fail|repeat)\\b(?![()])"
|
69
69
|
- name: support.function.control.logtalk
|
70
|
-
match:
|
70
|
+
match: "\\b(ca(ll|tch)|throw|once)(?=[(])"
|
71
71
|
- name: support.function.chars-and-bytes-io.logtalk
|
72
|
-
match:
|
72
|
+
match: "\\b((get|peek|put)_(char|code|byte)|nl)(?=[(])"
|
73
73
|
- name: support.function.chars-and-bytes-io.logtalk
|
74
|
-
match:
|
74
|
+
match: "\\bnl\\b"
|
75
75
|
- name: support.function.atom-term-processing.logtalk
|
76
|
-
match:
|
76
|
+
match: "\\b(atom_(length|c(hars|o(ncat|des)))|sub_atom|char_code|number_c(hars|odes))(?=[(])"
|
77
77
|
- name: support.function.term-testing.logtalk
|
78
|
-
match:
|
78
|
+
match: "\\b(var|atom|integer|float|atomic|compound|n(onvar|umber))(?=[(])"
|
79
79
|
- name: support.function.term-io.logtalk
|
80
|
-
match:
|
80
|
+
match: "\\b(read_term|read|write|write(q|_(canonical|term))|op|current_op|char_conversion|current_char_conversion)(?=[(])"
|
81
81
|
- name: support.function.term-creation-and-decomposition.logtalk
|
82
|
-
match:
|
82
|
+
match: "\\b(arg|copy_term|functor)(?=[(])"
|
83
83
|
- name: support.function.term-unification.logtalk
|
84
|
-
match:
|
84
|
+
match: "\\b(unify_with_occurs_check)(?=[(])"
|
85
85
|
- name: support.function.stream-selection-and-control.logtalk
|
86
|
-
match:
|
86
|
+
match: "\\b((set|current)_(in|out)put|open|close|flush_output|stream_property|at_end_of_stream|set_stream_position)(?=[(])"
|
87
87
|
- name: support.function.stream-selection-and-control.logtalk
|
88
|
-
match:
|
88
|
+
match: "\\b(flush_output|at_end_of_stream)\\b(?![()])"
|
89
89
|
- name: support.function.prolog-flags.logtalk
|
90
|
-
match:
|
90
|
+
match: "\\b((set|current)_prolog_flag)(?=[(])"
|
91
91
|
- name: support.function.compiling-and-loading.logtalk
|
92
|
-
match:
|
92
|
+
match: "\\b(logtalk_(compile|l(ibrary_path|oad)))(?=[(])"
|
93
93
|
- name: support.function.event-handling.logtalk
|
94
|
-
match:
|
94
|
+
match: "\\b((abolish|define)_events|current_event)(?=[(])"
|
95
95
|
- name: support.function.implementation-defined-hooks.logtalk
|
96
|
-
match:
|
96
|
+
match: "\\b((current|set)_logtalk_flag|halt)(?=[(])"
|
97
97
|
- name: support.function.implementation-defined-hooks.logtalk
|
98
|
-
match:
|
98
|
+
match: "\\b(halt)\\b"
|
99
99
|
- name: support.function.entity-creation-and-abolishing.logtalk
|
100
|
-
match:
|
100
|
+
match: "\\b((c(reate|urrent)|abolish)_(object|protocol|category))(?=[(])"
|
101
101
|
- name: support.function.reflection.logtalk
|
102
|
-
match:
|
102
|
+
match: "\\b((object|protocol|category)_property|extends_(object|protocol)|imp(orts_category|lements_protocol)|(instantiates|specializes)_class)(?=[(])"
|
103
103
|
- name: support.function.logtalk
|
104
|
-
match:
|
104
|
+
match: "\\b((for|retract)all)(?=[(])"
|
105
105
|
- name: support.function.execution-context.logtalk
|
106
|
-
match:
|
106
|
+
match: "\\b(parameter|se(lf|nder)|this)(?=[(])"
|
107
107
|
- name: support.function.database.logtalk
|
108
|
-
match:
|
108
|
+
match: "\\b(a(bolish|ssert(a|z))|clause|retract|retractall)(?=[(])"
|
109
109
|
- name: support.function.all-solutions.logtalk
|
110
|
-
match:
|
110
|
+
match: "\\b((bag|set)of|f(ind|or)all)(?=[(])"
|
111
111
|
- name: support.function.multi-threading.logtalk
|
112
|
-
match:
|
112
|
+
match: "\\b(threaded_(call|exit))(?=[(])"
|
113
113
|
- name: support.function.reflection.logtalk
|
114
|
-
match:
|
114
|
+
match: "\\b(current_predicate|predicate_property)(?=[(])"
|
115
115
|
- name: support.function.event-handler.logtalk
|
116
|
-
match:
|
116
|
+
match: "\\b(before|after)(?=[(])"
|
117
117
|
- name: support.function.grammar-rule.logtalk
|
118
|
-
match:
|
118
|
+
match: "\\b(expand_term|term_expansion|phrase)(?=[(])"
|
119
119
|
- name: string.quoted.single.logtalk
|
120
|
-
endCaptures:
|
121
|
-
|
120
|
+
endCaptures:
|
121
|
+
'0':
|
122
122
|
name: punctuation.definition.string.end.logtalk
|
123
123
|
begin: "'"
|
124
|
-
beginCaptures:
|
125
|
-
|
124
|
+
beginCaptures:
|
125
|
+
'0':
|
126
126
|
name: punctuation.definition.string.begin.logtalk
|
127
127
|
end: "'"
|
128
|
-
patterns:
|
128
|
+
patterns:
|
129
129
|
- name: constant.character.escape.logtalk
|
130
|
-
match:
|
130
|
+
match: "\\\\."
|
131
131
|
- name: string.quoted.double.logtalk
|
132
|
-
endCaptures:
|
133
|
-
|
132
|
+
endCaptures:
|
133
|
+
'0':
|
134
134
|
name: punctuation.definition.string.end.logtalk
|
135
135
|
begin: "\""
|
136
|
-
beginCaptures:
|
137
|
-
|
136
|
+
beginCaptures:
|
137
|
+
'0':
|
138
138
|
name: punctuation.definition.string.begin.logtalk
|
139
139
|
end: "\""
|
140
|
-
patterns:
|
140
|
+
patterns:
|
141
141
|
- name: constant.character.escape.logtalk
|
142
|
-
match:
|
142
|
+
match: "\\\\."
|
143
143
|
- name: constant.numeric.logtalk
|
144
|
-
match:
|
144
|
+
match: "\\b(0b[0-1]+|0o[0-7]+|0x\\h+)\\b"
|
145
145
|
- name: constant.numeric.logtalk
|
146
|
-
match:
|
146
|
+
match: "\\b(0'.|0''|0'\")"
|
147
147
|
- name: constant.numeric.logtalk
|
148
|
-
match:
|
148
|
+
match: "\\b(\\d+\\.?\\d*((e|E)(\\+|-)?\\d+)?)\\b"
|
149
149
|
- name: variable.other.logtalk
|
150
|
-
match:
|
151
|
-
foldingStopMarker: (
|
152
|
-
keyEquivalent: ^~L
|
150
|
+
match: "\\b([A-Z_][A-Za-z0-9_]*)\\b"
|
151
|
+
foldingStopMarker: "(\\*/|:-\\s+end_(object|protocol|category)(?=[.]))"
|
152
|
+
keyEquivalent: "^~L"
|
@@ -1,86 +1,88 @@
|
|
1
|
-
---
|
1
|
+
---
|
2
2
|
name: Lua
|
3
|
-
fileTypes:
|
3
|
+
fileTypes:
|
4
4
|
- lua
|
5
5
|
scopeName: source.lua
|
6
6
|
uuid: 93E017CC-6F27-11D9-90EB-000D93589AF7
|
7
|
-
foldingStartMarker:
|
8
|
-
patterns:
|
7
|
+
foldingStartMarker: "^\\s*\\b(function|if|for)\\b|{[ \\t]*$|\\[\\["
|
8
|
+
patterns:
|
9
9
|
- name: meta.function.lua
|
10
|
-
captures:
|
11
|
-
|
10
|
+
captures:
|
11
|
+
'6':
|
12
12
|
name: punctuation.definition.parameters.end.lua
|
13
|
-
|
13
|
+
'1':
|
14
14
|
name: keyword.control.lua
|
15
|
-
|
15
|
+
'2':
|
16
16
|
name: entity.name.function.scope.lua
|
17
|
-
|
17
|
+
'3':
|
18
18
|
name: entity.name.function.lua
|
19
|
-
|
19
|
+
'4':
|
20
20
|
name: punctuation.definition.parameters.begin.lua
|
21
|
-
|
21
|
+
'5':
|
22
22
|
name: variable.parameter.function.lua
|
23
|
-
match:
|
23
|
+
match: "\\b(function)\\s+([a-zA-Z_.:]+[.:])?([a-zA-Z_]\\w*)\\s*(\\()([^)]*)(\\))"
|
24
24
|
- name: constant.numeric.lua
|
25
|
-
match: (?<![
|
25
|
+
match: "(?<![\\d.])\\s0x[a-fA-F\\d]+|\\b\\d+(\\.\\d+)?([eE]-?\\d+)?|\\.\\d+([eE]-?\\d+)?"
|
26
26
|
- name: string.quoted.single.lua
|
27
|
-
endCaptures:
|
28
|
-
|
27
|
+
endCaptures:
|
28
|
+
'0':
|
29
29
|
name: punctuation.definition.string.end.lua
|
30
30
|
begin: "'"
|
31
|
-
beginCaptures:
|
32
|
-
|
31
|
+
beginCaptures:
|
32
|
+
'0':
|
33
33
|
name: punctuation.definition.string.begin.lua
|
34
34
|
end: "'"
|
35
|
-
patterns:
|
35
|
+
patterns:
|
36
36
|
- name: constant.character.escape.lua
|
37
|
-
match:
|
37
|
+
match: "\\\\."
|
38
38
|
- name: string.quoted.double.lua
|
39
|
-
endCaptures:
|
40
|
-
|
39
|
+
endCaptures:
|
40
|
+
'0':
|
41
41
|
name: punctuation.definition.string.end.lua
|
42
42
|
begin: "\""
|
43
|
-
beginCaptures:
|
44
|
-
|
43
|
+
beginCaptures:
|
44
|
+
'0':
|
45
45
|
name: punctuation.definition.string.begin.lua
|
46
46
|
end: "\""
|
47
|
-
patterns:
|
47
|
+
patterns:
|
48
48
|
- name: constant.character.escape.lua
|
49
|
-
match:
|
49
|
+
match: "\\\\."
|
50
50
|
- name: string.quoted.other.multiline.lua
|
51
|
-
endCaptures:
|
52
|
-
|
51
|
+
endCaptures:
|
52
|
+
'0':
|
53
53
|
name: punctuation.definition.string.end.lua
|
54
|
-
begin: (?<!--)
|
55
|
-
beginCaptures:
|
56
|
-
|
54
|
+
begin: "(?<!--)\\[(=*)\\["
|
55
|
+
beginCaptures:
|
56
|
+
'0':
|
57
57
|
name: punctuation.definition.string.begin.lua
|
58
|
-
end:
|
58
|
+
end: "\\]\\1\\]"
|
59
59
|
- name: comment.block.lua
|
60
|
-
captures:
|
61
|
-
|
60
|
+
captures:
|
61
|
+
'0':
|
62
62
|
name: punctuation.definition.comment.lua
|
63
|
-
begin:
|
64
|
-
end:
|
63
|
+
begin: "--\\[(=*)\\["
|
64
|
+
end: "\\]\\1\\]"
|
65
65
|
- name: comment.line.double-dash.lua
|
66
|
-
captures:
|
67
|
-
|
66
|
+
captures:
|
67
|
+
'1':
|
68
68
|
name: punctuation.definition.comment.lua
|
69
|
-
match: (--)(
|
69
|
+
match: "(--)(?!\\[\\[).*$\\n?"
|
70
70
|
- name: keyword.control.lua
|
71
|
-
match:
|
71
|
+
match: "\\b(break|do|else|for|if|elseif|return|then|repeat|while|until|end|function|local|in)\\b"
|
72
72
|
- name: constant.language.lua
|
73
|
-
match: (?<![^.]
|
73
|
+
match: "(?<![^.]\\.|:)\\b(false|nil|true|_G|_VERSION|math\\.(pi|huge))\\b|(?<![.])\\.{3}(?!\\.)"
|
74
74
|
- name: variable.language.self.lua
|
75
|
-
match: (?<![^.]
|
75
|
+
match: "(?<![^.]\\.|:)\\b(self)\\b"
|
76
76
|
- name: support.function.lua
|
77
|
-
match: (?<![^.]
|
77
|
+
match: "(?<![^.]\\.|:)\\b(assert|collectgarbage|dofile|error|getfenv|getmetatable|ipairs|loadfile|loadstring|module|next|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|tonumber|tostring|type|unpack|xpcall)\\b(?=[(
|
78
|
+
{])"
|
78
79
|
- name: support.function.library.lua
|
79
|
-
match: (?<![^.]
|
80
|
+
match: "(?<![^.]\\.|:)\\b(coroutine\\.(create|resume|running|status|wrap|yield)|string\\.(byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\\.(concat|insert|maxn|remove|sort)|math\\.(abs|acos|asin|atan2?|ceil|cosh?|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pow|rad|random|randomseed|sinh?|sqrt|tanh?)|io\\.(close|flush|input|lines|open|output|popen|read|tmpfile|type|write)|os\\.(clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\\.(cpath|loaded|loadlib|path|preload|seeall)|debug\\.(debug|[gs]etfenv|[gs]ethook|getinfo|[gs]etlocal|[gs]etmetatable|getregistry|[gs]etupvalue|traceback))\\b(?=[(
|
81
|
+
{])"
|
80
82
|
- name: keyword.operator.lua
|
81
|
-
match:
|
83
|
+
match: "\\b(and|or)\\b"
|
82
84
|
- name: keyword.operator.lua
|
83
|
-
match:
|
84
|
-
foldingStopMarker:
|
85
|
-
keyEquivalent: ^~L
|
86
|
-
comment:
|
85
|
+
match: "\\+|-|%|#|\\*|\\/|\\^|==?|~=|<=?|>=?|(?<!\\.)\\.{2}(?!\\.)"
|
86
|
+
foldingStopMarker: "\\bend\\b|^\\s*}|\\]\\]"
|
87
|
+
keyEquivalent: "^~L"
|
88
|
+
comment: 'Lua Syntax: version 0.8'
|