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,62 +1,62 @@
|
|
1
|
-
---
|
1
|
+
---
|
2
2
|
name: Dylan
|
3
|
-
fileTypes:
|
3
|
+
fileTypes:
|
4
4
|
- dylan
|
5
5
|
scopeName: source.dylan
|
6
6
|
uuid: 475B8369-3520-4B4C-BBA1-1D1229C6F397
|
7
|
-
foldingStartMarker:
|
8
|
-
patterns:
|
7
|
+
foldingStartMarker: "\\b(define|begin|block)\\b"
|
8
|
+
patterns:
|
9
9
|
- name: comment.block.dylan
|
10
|
-
captures:
|
11
|
-
|
10
|
+
captures:
|
11
|
+
'0':
|
12
12
|
name: punctuation.definition.comment.dylan
|
13
|
-
begin:
|
14
|
-
end:
|
13
|
+
begin: "/\\*"
|
14
|
+
end: "\\*/"
|
15
15
|
comment: TODO -- Dylan allows nested comments.
|
16
16
|
- name: comment.line.double-slash.dylan
|
17
|
-
begin: //
|
18
|
-
beginCaptures:
|
19
|
-
|
17
|
+
begin: "//"
|
18
|
+
beginCaptures:
|
19
|
+
'0':
|
20
20
|
name: punctuation.definition.comment.dylan
|
21
|
-
end:
|
22
|
-
patterns:
|
21
|
+
end: "$\\n?"
|
22
|
+
patterns:
|
23
23
|
- name: punctuation.separator.continuation.dylan
|
24
|
-
match: (
|
24
|
+
match: "(?>\\\\\\s*\\n)"
|
25
25
|
- name: meta.function.dylan
|
26
|
-
captures:
|
27
|
-
|
26
|
+
captures:
|
27
|
+
'1':
|
28
28
|
name: keyword.control.def.dylan
|
29
|
-
|
29
|
+
'2':
|
30
30
|
name: storage.modifier.dylan
|
31
|
-
|
31
|
+
'3':
|
32
32
|
name: storage.type.function.dylan
|
33
|
-
|
33
|
+
'4':
|
34
34
|
name: entity.name.function.dylan
|
35
|
-
begin:
|
36
|
-
end:
|
35
|
+
begin: "\\b(define\\s+)((?:sealed|inline)\\s)?(method|function)\\s+([A-Za-z0-9\\\\-]*[!?]?)\\s"
|
36
|
+
end: "\\)"
|
37
37
|
- name: keyword.control.dylan
|
38
|
-
match:
|
38
|
+
match: "\\b(?<!-)(begin|block|case|class|constant|define|domain|else|end|for|function|handler|if|inline|let|library|local|macro|method|module|otherwise|select|unless|until|variable|when|while)(?![:-])\\b"
|
39
39
|
- name: support.constant.language.dylan
|
40
|
-
match: (#t|#f|#next|#rest|#key|#all-keys|#include)
|
40
|
+
match: "(#t|#f|#next|#rest|#key|#all-keys|#include)"
|
41
41
|
- name: keyword.control.sealing-directives.dylan
|
42
|
-
match:
|
42
|
+
match: "\\b(sealed|open|abstract|concrete|primary|free)\\b"
|
43
43
|
- name: constant.numeric.dylan
|
44
|
-
match:
|
44
|
+
match: "\\b((#x[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)\\b"
|
45
45
|
- name: string.quoted.double.dylan
|
46
|
-
endCaptures:
|
47
|
-
|
46
|
+
endCaptures:
|
47
|
+
'0':
|
48
48
|
name: punctuation.definition.string.end.dylan
|
49
49
|
begin: "\""
|
50
|
-
beginCaptures:
|
51
|
-
|
50
|
+
beginCaptures:
|
51
|
+
'0':
|
52
52
|
name: punctuation.definition.string.begin.dylan
|
53
53
|
end: "\""
|
54
|
-
patterns:
|
54
|
+
patterns:
|
55
55
|
- name: constant.character.escape.dylan
|
56
|
-
match:
|
56
|
+
match: "\\\\."
|
57
57
|
- name: support.class.dylan
|
58
|
-
match: <(abort|array|boolean|byte-string|character|class|collection|complex|condition|deque|double-float|empty-list|error|explicit-key-collection|extended-float|float|function|generic-function|integer|list|method|mutable-collection|mutable-explicit-key-collection|mutable-sequence|number|object-table|object|pair|range|rational|real|restart|sealed-object-error|sequence|serious-condition|simple-error|simple-object-vector|simple-restart|simple-vector|simple-warning|single-float|singleton|stretchy-collection|stretchy-vector|string|symbol|table|type-error|type|unicode-string|vector|warning)>
|
58
|
+
match: "<(abort|array|boolean|byte-string|character|class|collection|complex|condition|deque|double-float|empty-list|error|explicit-key-collection|extended-float|float|function|generic-function|integer|list|method|mutable-collection|mutable-explicit-key-collection|mutable-sequence|number|object-table|object|pair|range|rational|real|restart|sealed-object-error|sequence|serious-condition|simple-error|simple-object-vector|simple-restart|simple-vector|simple-warning|single-float|singleton|stretchy-collection|stretchy-vector|string|symbol|table|type-error|type|unicode-string|vector|warning)>"
|
59
59
|
- name: support.function.dylan
|
60
|
-
match:
|
61
|
-
foldingStopMarker:
|
62
|
-
keyEquivalent: ^~D
|
60
|
+
match: "\\b(?<!-)(abort|abs|add|add!|add-method|add-new|add-new!|all-superclasses|always|any?|applicable-method?|apply|aref|aref-setter|as|as-lowercase|as-lowercase!|as-uppercase|as-uppercase!|ash|backward-iteration-protocol|break|ceiling|ceiling/|cerror|check-type|choose|choose-by|complement|compose|concatenate|concatenate-as|condition-format-arguments|condition-format-string|conjoin|copy-sequence|curry|default-handler|dimension|dimensions|direct-subclasses|direct-superclasses|disjoin|do|do-handlers|element|element-setter|empty?|error|even?|every?|fill!|find-key|find-method|first|first-setter|floor|floor/|forward-iteration-protocol|function-arguments|function-return-values|function-specializers|gcd|generic-function-mandatory-|keywords|generic-function-methods|head|head-setter|identity|initialize|instance?|integral?|intersection|key-sequence|key-test|last|last-setter|lcm|limited|list|logand|logbit?|logior|lognot|logxor|make|map|map-as|map-into|max|member?|merge-hash-codes|min|modulo|negative|negative?|object-class|object-hash|odd?|pair|pop|pop-last|positive?|push|push-last|range|rank|rcurry|reduce|reduce1|remainder|remove|remove!|remove-duplicates|remove-duplicates!|remove-key!|remove-method|replace-elements!|replace-subsequence!|restart-query|return-allowed?|return-description|return-query|reverse|reverse!|round|round/|row-major-index|second|second-setter|shallow-copy|signal|singleton|size|size-setter|slot-initialized?|sort|sort!|sorted-applicable-methods|subsequence-position|subtype?|table-protocol|tail|tail-setter|third|third-setter|truncate|truncate/|type-error-expected-type|type-error-value|type-for-copy|type-union|union|values|vector|zero?)(?![:-])\\b"
|
61
|
+
foldingStopMarker: "\\bend\\b"
|
62
|
+
keyEquivalent: "^~D"
|
@@ -1,78 +1,75 @@
|
|
1
|
-
---
|
1
|
+
---
|
2
2
|
name: Eiffel
|
3
|
-
fileTypes:
|
3
|
+
fileTypes:
|
4
4
|
- e
|
5
5
|
scopeName: source.eiffel
|
6
|
-
repository:
|
7
|
-
number:
|
6
|
+
repository:
|
7
|
+
number:
|
8
8
|
match: "[0-9]+"
|
9
|
-
variable:
|
9
|
+
variable:
|
10
10
|
match: "[a-zA-Z0-9_]+"
|
11
11
|
uuid: 34672373-DED9-45B8-AF7E-2E4B6C3D6B76
|
12
|
-
foldingStartMarker: (class|once|do|external)
|
13
|
-
patterns:
|
12
|
+
foldingStartMarker: "(class|once|do|external)"
|
13
|
+
patterns:
|
14
14
|
- name: comment.line.double-dash.eiffel
|
15
|
-
captures:
|
16
|
-
|
15
|
+
captures:
|
16
|
+
'1':
|
17
17
|
name: punctuation.definition.comment.eiffel
|
18
|
-
match: (--)
|
18
|
+
match: "(--).*$\\n?"
|
19
19
|
- name: keyword.control.eiffel
|
20
|
-
match:
|
20
|
+
match: "\\b(Indexing|indexing|deferred|expanded|class|inherit|rename|as|export|undefine|redefine|select|all|create|creation|feature|prefix|infix|separate|frozen|obsolete|local|is|unique|do|once|external|alias|require|ensure|invariant|variant|rescue|retry|like|check|if|else|elseif|then|inspect|when|from|loop|until|debug|not|or|and|xor|implies|old|end)\\b"
|
21
21
|
- name: variable.other.eiffel
|
22
22
|
match: "[a-zA-Z_]+"
|
23
23
|
- name: constant.language.eiffel
|
24
|
-
match:
|
24
|
+
match: "\\b(True|true|False|false|Void|void|Result|result)\\b"
|
25
25
|
- name: meta.features.eiffel
|
26
26
|
begin: feature
|
27
27
|
end: end
|
28
28
|
- name: meta.effective_routine_body.eiffel
|
29
|
-
begin: (do|once)
|
30
|
-
end: (ensure|end)
|
29
|
+
begin: "(do|once)"
|
30
|
+
end: "(ensure|end)"
|
31
31
|
- name: meta.rescue.eiffel
|
32
32
|
begin: rescue
|
33
33
|
end: end
|
34
34
|
- name: string.quoted.double.eiffel
|
35
|
-
endCaptures:
|
36
|
-
|
35
|
+
endCaptures:
|
36
|
+
'0':
|
37
37
|
name: punctuation.definition.string.end.eiffel
|
38
38
|
begin: "\""
|
39
|
-
beginCaptures:
|
40
|
-
|
39
|
+
beginCaptures:
|
40
|
+
'0':
|
41
41
|
name: punctuation.definition.string.begin.eiffel
|
42
42
|
end: "\""
|
43
|
-
patterns:
|
43
|
+
patterns:
|
44
44
|
- name: constant.character.escape.eiffel
|
45
|
-
match:
|
45
|
+
match: "\\\\."
|
46
46
|
- name: constant.numeric.eiffel
|
47
47
|
match: "[0-9]+"
|
48
48
|
- name: storage.modifier.eiffel
|
49
|
-
match:
|
49
|
+
match: "\\b(deferred|expanded)\\b"
|
50
50
|
- name: meta.definition.class.eiffel
|
51
|
-
captures:
|
52
|
-
|
51
|
+
captures:
|
52
|
+
'1':
|
53
53
|
name: storage.modifier.eiffel
|
54
|
-
begin:
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
(\w+)\s* # identifier
|
59
|
-
end: (?=end)
|
60
|
-
patterns:
|
54
|
+
begin: "^\\s*\n\t\t\t\t\t((?:\\b(deferred|expanded)\\b\\s*)*) # modifier\n\t\t\t\t\t(class)\\s+\n\t\t\t\t\t(\\w+)\\s*
|
55
|
+
# identifier"
|
56
|
+
end: "(?=end)"
|
57
|
+
patterns:
|
61
58
|
- name: meta.definition.class.extends.java
|
62
|
-
captures:
|
63
|
-
|
59
|
+
captures:
|
60
|
+
'1':
|
64
61
|
name: storage.modifier.java
|
65
|
-
begin:
|
66
|
-
end: (?={|implements)
|
67
|
-
patterns:
|
62
|
+
begin: "\\b(extends)\\b\\s+"
|
63
|
+
end: "(?={|implements)"
|
64
|
+
patterns:
|
68
65
|
- include: "#all-types"
|
69
66
|
- name: meta.definition.class.implements.java
|
70
|
-
captures:
|
71
|
-
|
67
|
+
captures:
|
68
|
+
'1':
|
72
69
|
name: storage.modifier.java
|
73
|
-
begin:
|
74
|
-
end: (?={|extends)
|
75
|
-
patterns:
|
70
|
+
begin: "\\b(implements)\\b\\s+"
|
71
|
+
end: "(?={|extends)"
|
72
|
+
patterns:
|
76
73
|
- include: "#all-types"
|
77
|
-
foldingStopMarker: (ensure|end)
|
78
|
-
keyEquivalent: ^~E
|
74
|
+
foldingStopMarker: "(ensure|end)"
|
75
|
+
keyEquivalent: "^~E"
|
@@ -1,744 +1,744 @@
|
|
1
|
-
---
|
1
|
+
---
|
2
2
|
name: Erlang
|
3
|
-
fileTypes:
|
3
|
+
fileTypes:
|
4
4
|
- erl
|
5
5
|
- hrl
|
6
6
|
scopeName: source.erlang
|
7
|
-
repository:
|
8
|
-
macro-usage:
|
7
|
+
repository:
|
8
|
+
macro-usage:
|
9
9
|
name: meta.macro-usage.erlang
|
10
|
-
captures:
|
11
|
-
|
10
|
+
captures:
|
11
|
+
'1':
|
12
12
|
name: keyword.operator.macro.erlang
|
13
|
-
|
13
|
+
'2':
|
14
14
|
name: entity.name.function.macro.erlang
|
15
|
-
match: (
|
16
|
-
list:
|
15
|
+
match: "(\\?\\??)\\s*+([a-zA-Z\\d@_]++)"
|
16
|
+
list:
|
17
17
|
name: meta.structure.list.erlang
|
18
|
-
endCaptures:
|
19
|
-
|
18
|
+
endCaptures:
|
19
|
+
'1':
|
20
20
|
name: punctuation.definition.list.end.erlang
|
21
|
-
begin: (
|
22
|
-
beginCaptures:
|
23
|
-
|
21
|
+
begin: "(\\[)"
|
22
|
+
beginCaptures:
|
23
|
+
'1':
|
24
24
|
name: punctuation.definition.list.begin.erlang
|
25
|
-
end: (
|
26
|
-
patterns:
|
25
|
+
end: "(\\])"
|
26
|
+
patterns:
|
27
27
|
- name: punctuation.separator.list.erlang
|
28
|
-
match:
|
28
|
+
match: "\\||\\|\\||,"
|
29
29
|
- include: "#everything-else"
|
30
|
-
import-export-directive:
|
31
|
-
patterns:
|
30
|
+
import-export-directive:
|
31
|
+
patterns:
|
32
32
|
- name: meta.directive.import.erlang
|
33
|
-
endCaptures:
|
34
|
-
|
33
|
+
endCaptures:
|
34
|
+
'1':
|
35
35
|
name: punctuation.definition.parameters.end.erlang
|
36
|
-
|
36
|
+
'2':
|
37
37
|
name: punctuation.section.directive.end.erlang
|
38
|
-
begin:
|
39
|
-
beginCaptures:
|
40
|
-
|
38
|
+
begin: "^\\s*+(-)\\s*+(import)\\s*+(\\()\\s*+([a-z][a-zA-Z\\d@_]*+)\\s*+(,)"
|
39
|
+
beginCaptures:
|
40
|
+
'1':
|
41
41
|
name: punctuation.section.directive.begin.erlang
|
42
|
-
|
42
|
+
'2':
|
43
43
|
name: keyword.control.directive.import.erlang
|
44
|
-
|
44
|
+
'3':
|
45
45
|
name: punctuation.definition.parameters.begin.erlang
|
46
|
-
|
46
|
+
'4':
|
47
47
|
name: entity.name.type.class.module.erlang
|
48
|
-
|
48
|
+
'5':
|
49
49
|
name: punctuation.separator.parameters.erlang
|
50
|
-
end: (
|
51
|
-
patterns:
|
50
|
+
end: "(\\))\\s*+(\\.)"
|
51
|
+
patterns:
|
52
52
|
- include: "#internal-function-list"
|
53
53
|
- name: meta.directive.export.erlang
|
54
|
-
endCaptures:
|
55
|
-
|
54
|
+
endCaptures:
|
55
|
+
'1':
|
56
56
|
name: punctuation.definition.parameters.end.erlang
|
57
|
-
|
57
|
+
'2':
|
58
58
|
name: punctuation.section.directive.end.erlang
|
59
|
-
begin:
|
60
|
-
beginCaptures:
|
61
|
-
|
59
|
+
begin: "^\\s*+(-)\\s*+(export)\\s*+(\\()"
|
60
|
+
beginCaptures:
|
61
|
+
'1':
|
62
62
|
name: punctuation.section.directive.begin.erlang
|
63
|
-
|
63
|
+
'2':
|
64
64
|
name: keyword.control.directive.export.erlang
|
65
|
-
|
65
|
+
'3':
|
66
66
|
name: punctuation.definition.parameters.begin.erlang
|
67
|
-
end: (
|
68
|
-
patterns:
|
67
|
+
end: "(\\))\\s*+(\\.)"
|
68
|
+
patterns:
|
69
69
|
- include: "#internal-function-list"
|
70
|
-
symbolic-operator:
|
70
|
+
symbolic-operator:
|
71
71
|
name: keyword.operator.symbolic.erlang
|
72
|
-
match:
|
73
|
-
number:
|
74
|
-
begin: (
|
75
|
-
end: (
|
76
|
-
patterns:
|
72
|
+
match: "\\+\\+|\\+|--|-|\\*|/=|/|=/=|=:=|==|=<|=|<-|<|>=|>|!"
|
73
|
+
number:
|
74
|
+
begin: "(?=\\d)"
|
75
|
+
end: "(?!\\d)"
|
76
|
+
patterns:
|
77
77
|
- name: constant.numeric.float.erlang
|
78
|
-
captures:
|
79
|
-
|
78
|
+
captures:
|
79
|
+
'1':
|
80
80
|
name: punctuation.separator.integer-float.erlang
|
81
|
-
|
81
|
+
'3':
|
82
82
|
name: punctuation.separator.float-exponent.erlang
|
83
|
-
match:
|
83
|
+
match: "\\d++(\\.)\\d++(([eE][\\+\\-])?\\d++)?"
|
84
84
|
- name: constant.numeric.integer.binary.erlang
|
85
|
-
captures:
|
86
|
-
|
85
|
+
captures:
|
86
|
+
'1':
|
87
87
|
name: punctuation.separator.base-integer.erlang
|
88
88
|
match: 2(#)[0-1]++
|
89
89
|
- name: constant.numeric.integer.base-3.erlang
|
90
|
-
captures:
|
91
|
-
|
90
|
+
captures:
|
91
|
+
'1':
|
92
92
|
name: punctuation.separator.base-integer.erlang
|
93
93
|
match: 3(#)[0-2]++
|
94
94
|
- name: constant.numeric.integer.base-4.erlang
|
95
|
-
captures:
|
96
|
-
|
95
|
+
captures:
|
96
|
+
'1':
|
97
97
|
name: punctuation.separator.base-integer.erlang
|
98
98
|
match: 4(#)[0-3]++
|
99
99
|
- name: constant.numeric.integer.base-5.erlang
|
100
|
-
captures:
|
101
|
-
|
100
|
+
captures:
|
101
|
+
'1':
|
102
102
|
name: punctuation.separator.base-integer.erlang
|
103
103
|
match: 5(#)[0-4]++
|
104
104
|
- name: constant.numeric.integer.base-6.erlang
|
105
|
-
captures:
|
106
|
-
|
105
|
+
captures:
|
106
|
+
'1':
|
107
107
|
name: punctuation.separator.base-integer.erlang
|
108
108
|
match: 6(#)[0-5]++
|
109
109
|
- name: constant.numeric.integer.base-7.erlang
|
110
|
-
captures:
|
111
|
-
|
110
|
+
captures:
|
111
|
+
'1':
|
112
112
|
name: punctuation.separator.base-integer.erlang
|
113
113
|
match: 7(#)[0-6]++
|
114
114
|
- name: constant.numeric.integer.octal.erlang
|
115
|
-
captures:
|
116
|
-
|
115
|
+
captures:
|
116
|
+
'1':
|
117
117
|
name: punctuation.separator.base-integer.erlang
|
118
118
|
match: 8(#)[0-7]++
|
119
119
|
- name: constant.numeric.integer.base-9.erlang
|
120
|
-
captures:
|
121
|
-
|
120
|
+
captures:
|
121
|
+
'1':
|
122
122
|
name: punctuation.separator.base-integer.erlang
|
123
123
|
match: 9(#)[0-8]++
|
124
124
|
- name: constant.numeric.integer.decimal.erlang
|
125
|
-
captures:
|
126
|
-
|
125
|
+
captures:
|
126
|
+
'1':
|
127
127
|
name: punctuation.separator.base-integer.erlang
|
128
128
|
match: 10(#)\d++
|
129
129
|
- name: constant.numeric.integer.base-11.erlang
|
130
|
-
captures:
|
131
|
-
|
130
|
+
captures:
|
131
|
+
'1':
|
132
132
|
name: punctuation.separator.base-integer.erlang
|
133
133
|
match: 11(#)[\daA]++
|
134
134
|
- name: constant.numeric.integer.base-12.erlang
|
135
|
-
captures:
|
136
|
-
|
135
|
+
captures:
|
136
|
+
'1':
|
137
137
|
name: punctuation.separator.base-integer.erlang
|
138
138
|
match: 12(#)[\da-bA-B]++
|
139
139
|
- name: constant.numeric.integer.base-13.erlang
|
140
|
-
captures:
|
141
|
-
|
140
|
+
captures:
|
141
|
+
'1':
|
142
142
|
name: punctuation.separator.base-integer.erlang
|
143
143
|
match: 13(#)[\da-cA-C]++
|
144
144
|
- name: constant.numeric.integer.base-14.erlang
|
145
|
-
captures:
|
146
|
-
|
145
|
+
captures:
|
146
|
+
'1':
|
147
147
|
name: punctuation.separator.base-integer.erlang
|
148
148
|
match: 14(#)[\da-dA-D]++
|
149
149
|
- name: constant.numeric.integer.base-15.erlang
|
150
|
-
captures:
|
151
|
-
|
150
|
+
captures:
|
151
|
+
'1':
|
152
152
|
name: punctuation.separator.base-integer.erlang
|
153
153
|
match: 15(#)[\da-eA-E]++
|
154
154
|
- name: constant.numeric.integer.hexadecimal.erlang
|
155
|
-
captures:
|
156
|
-
|
155
|
+
captures:
|
156
|
+
'1':
|
157
157
|
name: punctuation.separator.base-integer.erlang
|
158
158
|
match: 16(#)\h++
|
159
159
|
- name: constant.numeric.integer.base-17.erlang
|
160
|
-
captures:
|
161
|
-
|
160
|
+
captures:
|
161
|
+
'1':
|
162
162
|
name: punctuation.separator.base-integer.erlang
|
163
163
|
match: 17(#)[\da-gA-G]++
|
164
164
|
- name: constant.numeric.integer.base-18.erlang
|
165
|
-
captures:
|
166
|
-
|
165
|
+
captures:
|
166
|
+
'1':
|
167
167
|
name: punctuation.separator.base-integer.erlang
|
168
168
|
match: 18(#)[\da-hA-H]++
|
169
169
|
- name: constant.numeric.integer.base-19.erlang
|
170
|
-
captures:
|
171
|
-
|
170
|
+
captures:
|
171
|
+
'1':
|
172
172
|
name: punctuation.separator.base-integer.erlang
|
173
173
|
match: 19(#)[\da-iA-I]++
|
174
174
|
- name: constant.numeric.integer.base-20.erlang
|
175
|
-
captures:
|
176
|
-
|
175
|
+
captures:
|
176
|
+
'1':
|
177
177
|
name: punctuation.separator.base-integer.erlang
|
178
178
|
match: 20(#)[\da-jA-J]++
|
179
179
|
- name: constant.numeric.integer.base-21.erlang
|
180
|
-
captures:
|
181
|
-
|
180
|
+
captures:
|
181
|
+
'1':
|
182
182
|
name: punctuation.separator.base-integer.erlang
|
183
183
|
match: 21(#)[\da-kA-K]++
|
184
184
|
- name: constant.numeric.integer.base-22.erlang
|
185
|
-
captures:
|
186
|
-
|
185
|
+
captures:
|
186
|
+
'1':
|
187
187
|
name: punctuation.separator.base-integer.erlang
|
188
188
|
match: 22(#)[\da-lA-L]++
|
189
189
|
- name: constant.numeric.integer.base-23.erlang
|
190
|
-
captures:
|
191
|
-
|
190
|
+
captures:
|
191
|
+
'1':
|
192
192
|
name: punctuation.separator.base-integer.erlang
|
193
193
|
match: 23(#)[\da-mA-M]++
|
194
194
|
- name: constant.numeric.integer.base-24.erlang
|
195
|
-
captures:
|
196
|
-
|
195
|
+
captures:
|
196
|
+
'1':
|
197
197
|
name: punctuation.separator.base-integer.erlang
|
198
198
|
match: 24(#)[\da-nA-N]++
|
199
199
|
- name: constant.numeric.integer.base-25.erlang
|
200
|
-
captures:
|
201
|
-
|
200
|
+
captures:
|
201
|
+
'1':
|
202
202
|
name: punctuation.separator.base-integer.erlang
|
203
203
|
match: 25(#)[\da-oA-O]++
|
204
204
|
- name: constant.numeric.integer.base-26.erlang
|
205
|
-
captures:
|
206
|
-
|
205
|
+
captures:
|
206
|
+
'1':
|
207
207
|
name: punctuation.separator.base-integer.erlang
|
208
208
|
match: 26(#)[\da-pA-P]++
|
209
209
|
- name: constant.numeric.integer.base-27.erlang
|
210
|
-
captures:
|
211
|
-
|
210
|
+
captures:
|
211
|
+
'1':
|
212
212
|
name: punctuation.separator.base-integer.erlang
|
213
213
|
match: 27(#)[\da-qA-Q]++
|
214
214
|
- name: constant.numeric.integer.base-28.erlang
|
215
|
-
captures:
|
216
|
-
|
215
|
+
captures:
|
216
|
+
'1':
|
217
217
|
name: punctuation.separator.base-integer.erlang
|
218
218
|
match: 28(#)[\da-rA-R]++
|
219
219
|
- name: constant.numeric.integer.base-29.erlang
|
220
|
-
captures:
|
221
|
-
|
220
|
+
captures:
|
221
|
+
'1':
|
222
222
|
name: punctuation.separator.base-integer.erlang
|
223
223
|
match: 29(#)[\da-sA-S]++
|
224
224
|
- name: constant.numeric.integer.base-30.erlang
|
225
|
-
captures:
|
226
|
-
|
225
|
+
captures:
|
226
|
+
'1':
|
227
227
|
name: punctuation.separator.base-integer.erlang
|
228
228
|
match: 30(#)[\da-tA-T]++
|
229
229
|
- name: constant.numeric.integer.base-31.erlang
|
230
|
-
captures:
|
231
|
-
|
230
|
+
captures:
|
231
|
+
'1':
|
232
232
|
name: punctuation.separator.base-integer.erlang
|
233
233
|
match: 31(#)[\da-uA-U]++
|
234
234
|
- name: constant.numeric.integer.base-32.erlang
|
235
|
-
captures:
|
236
|
-
|
235
|
+
captures:
|
236
|
+
'1':
|
237
237
|
name: punctuation.separator.base-integer.erlang
|
238
238
|
match: 32(#)[\da-vA-V]++
|
239
239
|
- name: constant.numeric.integer.base-33.erlang
|
240
|
-
captures:
|
241
|
-
|
240
|
+
captures:
|
241
|
+
'1':
|
242
242
|
name: punctuation.separator.base-integer.erlang
|
243
243
|
match: 33(#)[\da-wA-W]++
|
244
244
|
- name: constant.numeric.integer.base-34.erlang
|
245
|
-
captures:
|
246
|
-
|
245
|
+
captures:
|
246
|
+
'1':
|
247
247
|
name: punctuation.separator.base-integer.erlang
|
248
248
|
match: 34(#)[\da-xA-X]++
|
249
249
|
- name: constant.numeric.integer.base-35.erlang
|
250
|
-
captures:
|
251
|
-
|
250
|
+
captures:
|
251
|
+
'1':
|
252
252
|
name: punctuation.separator.base-integer.erlang
|
253
253
|
match: 35(#)[\da-yA-Y]++
|
254
254
|
- name: constant.numeric.integer.base-36.erlang
|
255
|
-
captures:
|
256
|
-
|
255
|
+
captures:
|
256
|
+
'1':
|
257
257
|
name: punctuation.separator.base-integer.erlang
|
258
258
|
match: 36(#)[\da-zA-Z]++
|
259
259
|
- name: invalid.illegal.integer.erlang
|
260
|
-
match:
|
260
|
+
match: "\\d++#[\\da-zA-Z]++"
|
261
261
|
- name: constant.numeric.integer.decimal.erlang
|
262
|
-
match:
|
263
|
-
internal-type-specifiers:
|
264
|
-
begin: (/)
|
265
|
-
beginCaptures:
|
266
|
-
|
262
|
+
match: "\\d++"
|
263
|
+
internal-type-specifiers:
|
264
|
+
begin: "(/)"
|
265
|
+
beginCaptures:
|
266
|
+
'1':
|
267
267
|
name: punctuation.separator.value-type.erlang
|
268
|
-
end: (?=,|:|>>)
|
269
|
-
patterns:
|
270
|
-
- captures:
|
271
|
-
|
268
|
+
end: "(?=,|:|>>)"
|
269
|
+
patterns:
|
270
|
+
- captures:
|
271
|
+
'1':
|
272
272
|
name: storage.type.erlang
|
273
|
-
|
273
|
+
'2':
|
274
274
|
name: storage.modifier.signedness.erlang
|
275
|
-
|
275
|
+
'3':
|
276
276
|
name: storage.modifier.endianness.erlang
|
277
|
-
|
277
|
+
'4':
|
278
278
|
name: storage.modifier.unit.erlang
|
279
|
-
|
279
|
+
'5':
|
280
280
|
name: punctuation.separator.type-specifiers.erlang
|
281
|
-
match: (integer|float|binary)|(signed|unsigned)|(big|little|native)|(unit)|(-)
|
282
|
-
character:
|
283
|
-
patterns:
|
281
|
+
match: "(integer|float|binary)|(signed|unsigned)|(big|little|native)|(unit)|(-)"
|
282
|
+
character:
|
283
|
+
patterns:
|
284
284
|
- name: constant.character.erlang
|
285
|
-
captures:
|
286
|
-
|
285
|
+
captures:
|
286
|
+
'1':
|
287
287
|
name: punctuation.definition.character.erlang
|
288
|
-
|
288
|
+
'2':
|
289
289
|
name: constant.character.escape.erlang
|
290
|
-
|
290
|
+
'3':
|
291
291
|
name: punctuation.definition.escape.erlang
|
292
|
-
|
292
|
+
'5':
|
293
293
|
name: punctuation.definition.escape.erlang
|
294
|
-
match: (
|
294
|
+
match: "(\\$)((\\\\)([bdefnrstv\\\\'\"]|(\\^)[@-_]|[0-7]{1,3}))"
|
295
295
|
- name: invalid.illegal.character.erlang
|
296
|
-
match:
|
296
|
+
match: "\\$\\\\\\^?.?"
|
297
297
|
- name: constant.character.erlang
|
298
|
-
captures:
|
299
|
-
|
298
|
+
captures:
|
299
|
+
'1':
|
300
300
|
name: punctuation.definition.character.erlang
|
301
|
-
match: (
|
301
|
+
match: "(\\$)\\S"
|
302
302
|
- name: invalid.illegal.character.erlang
|
303
|
-
match:
|
304
|
-
macro-directive:
|
305
|
-
patterns:
|
303
|
+
match: "\\$.?"
|
304
|
+
macro-directive:
|
305
|
+
patterns:
|
306
306
|
- name: meta.directive.ifdef.erlang
|
307
|
-
captures:
|
308
|
-
|
307
|
+
captures:
|
308
|
+
'6':
|
309
309
|
name: punctuation.section.directive.end.erlang
|
310
|
-
|
310
|
+
'1':
|
311
311
|
name: punctuation.section.directive.begin.erlang
|
312
|
-
|
312
|
+
'2':
|
313
313
|
name: keyword.control.directive.ifdef.erlang
|
314
|
-
|
314
|
+
'3':
|
315
315
|
name: punctuation.definition.parameters.begin.erlang
|
316
|
-
|
316
|
+
'4':
|
317
317
|
name: entity.name.function.macro.erlang
|
318
|
-
|
318
|
+
'5':
|
319
319
|
name: punctuation.definition.parameters.end.erlang
|
320
|
-
match:
|
320
|
+
match: "^\\s*+(-)\\s*+(ifdef)\\s*+(\\()\\s*+([a-zA-z\\d@_]++)\\s*+(\\))\\s*+(\\.)"
|
321
321
|
- name: meta.directive.ifndef.erlang
|
322
|
-
captures:
|
323
|
-
|
322
|
+
captures:
|
323
|
+
'6':
|
324
324
|
name: punctuation.section.directive.end.erlang
|
325
|
-
|
325
|
+
'1':
|
326
326
|
name: punctuation.section.directive.begin.erlang
|
327
|
-
|
327
|
+
'2':
|
328
328
|
name: keyword.control.directive.ifndef.erlang
|
329
|
-
|
329
|
+
'3':
|
330
330
|
name: punctuation.definition.parameters.begin.erlang
|
331
|
-
|
331
|
+
'4':
|
332
332
|
name: entity.name.function.macro.erlang
|
333
|
-
|
333
|
+
'5':
|
334
334
|
name: punctuation.definition.parameters.end.erlang
|
335
|
-
match:
|
335
|
+
match: "^\\s*+(-)\\s*+(ifndef)\\s*+(\\()\\s*+([a-zA-z\\d@_]++)\\s*+(\\))\\s*+(\\.)"
|
336
336
|
- name: meta.directive.undef.erlang
|
337
|
-
captures:
|
338
|
-
|
337
|
+
captures:
|
338
|
+
'6':
|
339
339
|
name: punctuation.section.directive.end.erlang
|
340
|
-
|
340
|
+
'1':
|
341
341
|
name: punctuation.section.directive.begin.erlang
|
342
|
-
|
342
|
+
'2':
|
343
343
|
name: keyword.control.directive.undef.erlang
|
344
|
-
|
344
|
+
'3':
|
345
345
|
name: punctuation.definition.parameters.begin.erlang
|
346
|
-
|
346
|
+
'4':
|
347
347
|
name: entity.name.function.macro.erlang
|
348
|
-
|
348
|
+
'5':
|
349
349
|
name: punctuation.definition.parameters.end.erlang
|
350
|
-
match:
|
351
|
-
internal-record-body:
|
350
|
+
match: "^\\s*+(-)\\s*+(undef)\\s*+(\\()\\s*+([a-zA-z\\d@_]++)\\s*+(\\))\\s*+(\\.)"
|
351
|
+
internal-record-body:
|
352
352
|
name: meta.structure.record.erlang
|
353
|
-
begin: (
|
354
|
-
beginCaptures:
|
355
|
-
|
353
|
+
begin: "(\\{)"
|
354
|
+
beginCaptures:
|
355
|
+
'1':
|
356
356
|
name: punctuation.definition.class.record.begin.erlang
|
357
|
-
end: (
|
358
|
-
patterns:
|
359
|
-
- endCaptures:
|
360
|
-
|
357
|
+
end: "(?=\\})"
|
358
|
+
patterns:
|
359
|
+
- endCaptures:
|
360
|
+
'1':
|
361
361
|
name: punctuation.separator.class.record.erlang
|
362
|
-
begin: (([a-z][a-zA-Z
|
363
|
-
beginCaptures:
|
364
|
-
|
362
|
+
begin: "(([a-z][a-zA-Z\\d@_]*+)|(_))\\s*+(=)"
|
363
|
+
beginCaptures:
|
364
|
+
'2':
|
365
365
|
name: variable.other.field.erlang
|
366
|
-
|
366
|
+
'3':
|
367
367
|
name: variable.language.omitted.field.erlang
|
368
|
-
|
368
|
+
'4':
|
369
369
|
name: keyword.operator.assignment.erlang
|
370
|
-
end: (,)|(
|
371
|
-
patterns:
|
370
|
+
end: "(,)|(?=\\})"
|
371
|
+
patterns:
|
372
372
|
- include: "#everything-else"
|
373
|
-
- captures:
|
374
|
-
|
373
|
+
- captures:
|
374
|
+
'1':
|
375
375
|
name: variable.other.field.erlang
|
376
|
-
|
376
|
+
'2':
|
377
377
|
name: punctuation.separator.class.record.erlang
|
378
|
-
match: ([a-z][a-zA-Z
|
378
|
+
match: "([a-z][a-zA-Z\\d@_]*+)\\s*+(,)?"
|
379
379
|
- include: "#everything-else"
|
380
|
-
internal-function-list:
|
380
|
+
internal-function-list:
|
381
381
|
name: meta.structure.list.function.erlang
|
382
|
-
endCaptures:
|
383
|
-
|
382
|
+
endCaptures:
|
383
|
+
'1':
|
384
384
|
name: punctuation.definition.list.end.erlang
|
385
|
-
begin: (
|
386
|
-
beginCaptures:
|
387
|
-
|
385
|
+
begin: "(\\[)"
|
386
|
+
beginCaptures:
|
387
|
+
'1':
|
388
388
|
name: punctuation.definition.list.begin.erlang
|
389
|
-
end: (
|
390
|
-
patterns:
|
391
|
-
- endCaptures:
|
392
|
-
|
389
|
+
end: "(\\])"
|
390
|
+
patterns:
|
391
|
+
- endCaptures:
|
392
|
+
'1':
|
393
393
|
name: punctuation.separator.list.erlang
|
394
|
-
begin: ([a-z][a-zA-Z
|
395
|
-
beginCaptures:
|
396
|
-
|
394
|
+
begin: "([a-z][a-zA-Z\\d@_]*+)\\s*+(/)"
|
395
|
+
beginCaptures:
|
396
|
+
'1':
|
397
397
|
name: entity.name.function.erlang
|
398
|
-
|
398
|
+
'2':
|
399
399
|
name: punctuation.separator.function-arity.erlang
|
400
|
-
end: (,)|(
|
401
|
-
patterns:
|
400
|
+
end: "(,)|(?=\\])"
|
401
|
+
patterns:
|
402
402
|
- include: "#everything-else"
|
403
403
|
- include: "#everything-else"
|
404
|
-
internal-expression-punctuation:
|
405
|
-
captures:
|
406
|
-
|
404
|
+
internal-expression-punctuation:
|
405
|
+
captures:
|
406
|
+
'1':
|
407
407
|
name: punctuation.separator.clause-head-body.erlang
|
408
|
-
|
408
|
+
'2':
|
409
409
|
name: punctuation.separator.clauses.erlang
|
410
|
-
|
410
|
+
'3':
|
411
411
|
name: punctuation.separator.expressions.erlang
|
412
|
-
match: (->)|(;)|(,)
|
413
|
-
directive:
|
414
|
-
patterns:
|
412
|
+
match: "(->)|(;)|(,)"
|
413
|
+
directive:
|
414
|
+
patterns:
|
415
415
|
- name: meta.directive.erlang
|
416
|
-
endCaptures:
|
417
|
-
|
416
|
+
endCaptures:
|
417
|
+
'1':
|
418
418
|
name: punctuation.definition.parameters.end.erlang
|
419
|
-
|
419
|
+
'2':
|
420
420
|
name: punctuation.section.directive.end.erlang
|
421
|
-
begin:
|
422
|
-
beginCaptures:
|
423
|
-
|
421
|
+
begin: "^\\s*+(-)\\s*+([a-z][a-zA-Z\\d@_]*+)\\s*+(\\()"
|
422
|
+
beginCaptures:
|
423
|
+
'1':
|
424
424
|
name: punctuation.section.directive.begin.erlang
|
425
|
-
|
425
|
+
'2':
|
426
426
|
name: keyword.control.directive.erlang
|
427
|
-
|
427
|
+
'3':
|
428
428
|
name: punctuation.definition.parameters.begin.erlang
|
429
|
-
end: (
|
430
|
-
patterns:
|
429
|
+
end: "(\\))\\s*+(\\.)"
|
430
|
+
patterns:
|
431
431
|
- include: "#everything-else"
|
432
432
|
- name: meta.directive.erlang
|
433
|
-
captures:
|
434
|
-
|
433
|
+
captures:
|
434
|
+
'1':
|
435
435
|
name: punctuation.section.directive.begin.erlang
|
436
|
-
|
436
|
+
'2':
|
437
437
|
name: keyword.control.directive.erlang
|
438
|
-
|
438
|
+
'3':
|
439
439
|
name: punctuation.section.directive.end.erlang
|
440
|
-
match:
|
441
|
-
binary:
|
440
|
+
match: "^\\s*+(-)\\s*+([a-z][a-zA-Z\\d@_]*+)\\s*+(\\.)"
|
441
|
+
binary:
|
442
442
|
name: meta.structure.binary.erlang
|
443
|
-
endCaptures:
|
444
|
-
|
443
|
+
endCaptures:
|
444
|
+
'1':
|
445
445
|
name: punctuation.definition.binary.end.erlang
|
446
|
-
begin: (<<)
|
447
|
-
beginCaptures:
|
448
|
-
|
446
|
+
begin: "(<<)"
|
447
|
+
beginCaptures:
|
448
|
+
'1':
|
449
449
|
name: punctuation.definition.binary.begin.erlang
|
450
|
-
end: (>>)
|
451
|
-
patterns:
|
452
|
-
- captures:
|
453
|
-
|
450
|
+
end: "(>>)"
|
451
|
+
patterns:
|
452
|
+
- captures:
|
453
|
+
'1':
|
454
454
|
name: punctuation.separator.binary.erlang
|
455
|
-
|
455
|
+
'2':
|
456
456
|
name: punctuation.separator.value-size.erlang
|
457
|
-
match: (,)|(:)
|
457
|
+
match: "(,)|(:)"
|
458
458
|
- include: "#internal-type-specifiers"
|
459
459
|
- include: "#everything-else"
|
460
|
-
function:
|
460
|
+
function:
|
461
461
|
name: meta.function.erlang
|
462
|
-
endCaptures:
|
463
|
-
|
462
|
+
endCaptures:
|
463
|
+
'1':
|
464
464
|
name: punctuation.terminator.function.erlang
|
465
|
-
begin:
|
466
|
-
beginCaptures:
|
467
|
-
|
465
|
+
begin: "^\\s*+([a-z][a-zA-Z\\d@_]*+)\\s*+(?=\\()"
|
466
|
+
beginCaptures:
|
467
|
+
'1':
|
468
468
|
name: entity.name.function.definition.erlang
|
469
|
-
end: (
|
470
|
-
patterns:
|
471
|
-
- endCaptures:
|
472
|
-
|
469
|
+
end: "(\\.)"
|
470
|
+
patterns:
|
471
|
+
- endCaptures:
|
472
|
+
'1':
|
473
473
|
name: punctuation.separator.clauses.erlang
|
474
|
-
begin: (
|
475
|
-
end: (;)|(
|
476
|
-
patterns:
|
474
|
+
begin: "(?=\\()"
|
475
|
+
end: "(;)|(?=\\.)"
|
476
|
+
patterns:
|
477
477
|
- include: "#internal-function-parts"
|
478
|
-
- captures:
|
479
|
-
|
478
|
+
- captures:
|
479
|
+
'1':
|
480
480
|
name: entity.name.function.erlang
|
481
|
-
match:
|
481
|
+
match: "^\\s*+([a-z][a-zA-Z\\d@_]*+)\\s*+(?=\\()"
|
482
482
|
- include: "#everything-else"
|
483
|
-
expression:
|
484
|
-
patterns:
|
483
|
+
expression:
|
484
|
+
patterns:
|
485
485
|
- name: meta.expression.if.erlang
|
486
|
-
endCaptures:
|
487
|
-
|
486
|
+
endCaptures:
|
487
|
+
'1':
|
488
488
|
name: keyword.control.end.erlang
|
489
|
-
begin:
|
490
|
-
beginCaptures:
|
491
|
-
|
489
|
+
begin: "\\b(if)\\b"
|
490
|
+
beginCaptures:
|
491
|
+
'1':
|
492
492
|
name: keyword.control.if.erlang
|
493
|
-
end:
|
494
|
-
patterns:
|
493
|
+
end: "\\b(end)\\b"
|
494
|
+
patterns:
|
495
495
|
- include: "#internal-expression-punctuation"
|
496
496
|
- include: "#everything-else"
|
497
497
|
- name: meta.expression.case.erlang
|
498
|
-
endCaptures:
|
499
|
-
|
498
|
+
endCaptures:
|
499
|
+
'1':
|
500
500
|
name: keyword.control.end.erlang
|
501
|
-
begin:
|
502
|
-
beginCaptures:
|
503
|
-
|
501
|
+
begin: "\\b(case)\\b"
|
502
|
+
beginCaptures:
|
503
|
+
'1':
|
504
504
|
name: keyword.control.case.erlang
|
505
|
-
end:
|
506
|
-
patterns:
|
505
|
+
end: "\\b(end)\\b"
|
506
|
+
patterns:
|
507
507
|
- include: "#internal-expression-punctuation"
|
508
508
|
- include: "#everything-else"
|
509
509
|
- name: meta.expression.receive.erlang
|
510
|
-
endCaptures:
|
511
|
-
|
510
|
+
endCaptures:
|
511
|
+
'1':
|
512
512
|
name: keyword.control.end.erlang
|
513
|
-
begin:
|
514
|
-
beginCaptures:
|
515
|
-
|
513
|
+
begin: "\\b(receive)\\b"
|
514
|
+
beginCaptures:
|
515
|
+
'1':
|
516
516
|
name: keyword.control.receive.erlang
|
517
|
-
end:
|
518
|
-
patterns:
|
517
|
+
end: "\\b(end)\\b"
|
518
|
+
patterns:
|
519
519
|
- include: "#internal-expression-punctuation"
|
520
520
|
- include: "#everything-else"
|
521
|
-
- captures:
|
522
|
-
|
521
|
+
- captures:
|
522
|
+
'6':
|
523
523
|
name: punctuation.separator.function-arity.erlang
|
524
|
-
|
524
|
+
'1':
|
525
525
|
name: keyword.control.fun.erlang
|
526
|
-
|
526
|
+
'3':
|
527
527
|
name: entity.name.type.class.module.erlang
|
528
|
-
|
528
|
+
'4':
|
529
529
|
name: punctuation.separator.module-function.erlang
|
530
|
-
|
530
|
+
'5':
|
531
531
|
name: entity.name.function.erlang
|
532
|
-
match:
|
532
|
+
match: "\\b(fun)\\s*+(([a-z][a-zA-Z\\d@_]*+)\\s*+(:)\\s*+)?([a-z][a-zA-Z\\d@_]*+)\\s*(/)"
|
533
533
|
- name: meta.expression.fun.erlang
|
534
|
-
endCaptures:
|
535
|
-
|
534
|
+
endCaptures:
|
535
|
+
'1':
|
536
536
|
name: keyword.control.end.erlang
|
537
|
-
begin:
|
538
|
-
beginCaptures:
|
539
|
-
|
537
|
+
begin: "\\b(fun)\\b"
|
538
|
+
beginCaptures:
|
539
|
+
'1':
|
540
540
|
name: keyword.control.fun.erlang
|
541
|
-
end:
|
542
|
-
patterns:
|
543
|
-
- endCaptures:
|
544
|
-
|
541
|
+
end: "\\b(end)\\b"
|
542
|
+
patterns:
|
543
|
+
- endCaptures:
|
544
|
+
'1':
|
545
545
|
name: punctuation.separator.clauses.erlang
|
546
|
-
begin: (
|
547
|
-
end: (;)|(
|
548
|
-
patterns:
|
546
|
+
begin: "(?=\\()"
|
547
|
+
end: "(;)|(?=\\bend\\b)"
|
548
|
+
patterns:
|
549
549
|
- include: "#internal-function-parts"
|
550
550
|
- include: "#everything-else"
|
551
551
|
- name: meta.expression.try.erlang
|
552
|
-
endCaptures:
|
553
|
-
|
552
|
+
endCaptures:
|
553
|
+
'1':
|
554
554
|
name: keyword.control.end.erlang
|
555
|
-
begin:
|
556
|
-
beginCaptures:
|
557
|
-
|
555
|
+
begin: "\\b(try)\\b"
|
556
|
+
beginCaptures:
|
557
|
+
'1':
|
558
558
|
name: keyword.control.try.erlang
|
559
|
-
end:
|
560
|
-
patterns:
|
559
|
+
end: "\\b(end)\\b"
|
560
|
+
patterns:
|
561
561
|
- include: "#internal-expression-punctuation"
|
562
562
|
- include: "#everything-else"
|
563
563
|
- name: meta.expression.begin.erlang
|
564
|
-
endCaptures:
|
565
|
-
|
564
|
+
endCaptures:
|
565
|
+
'1':
|
566
566
|
name: keyword.control.end.erlang
|
567
|
-
begin:
|
568
|
-
beginCaptures:
|
569
|
-
|
567
|
+
begin: "\\b(begin)\\b"
|
568
|
+
beginCaptures:
|
569
|
+
'1':
|
570
570
|
name: keyword.control.begin.erlang
|
571
|
-
end:
|
572
|
-
patterns:
|
571
|
+
end: "\\b(end)\\b"
|
572
|
+
patterns:
|
573
573
|
- include: "#internal-expression-punctuation"
|
574
574
|
- include: "#everything-else"
|
575
575
|
- name: meta.expression.query.erlang
|
576
|
-
endCaptures:
|
577
|
-
|
576
|
+
endCaptures:
|
577
|
+
'1':
|
578
578
|
name: keyword.control.end.erlang
|
579
|
-
begin:
|
580
|
-
beginCaptures:
|
581
|
-
|
579
|
+
begin: "\\b(query)\\b"
|
580
|
+
beginCaptures:
|
581
|
+
'1':
|
582
582
|
name: keyword.control.query.erlang
|
583
|
-
end:
|
584
|
-
patterns:
|
583
|
+
end: "\\b(end)\\b"
|
584
|
+
patterns:
|
585
585
|
- include: "#everything-else"
|
586
|
-
module-directive:
|
586
|
+
module-directive:
|
587
587
|
name: meta.directive.module.erlang
|
588
|
-
captures:
|
589
|
-
|
588
|
+
captures:
|
589
|
+
'6':
|
590
590
|
name: punctuation.section.directive.end.erlang
|
591
|
-
|
591
|
+
'1':
|
592
592
|
name: punctuation.section.directive.begin.erlang
|
593
|
-
|
593
|
+
'2':
|
594
594
|
name: keyword.control.directive.module.erlang
|
595
|
-
|
595
|
+
'3':
|
596
596
|
name: punctuation.definition.parameters.begin.erlang
|
597
|
-
|
597
|
+
'4':
|
598
598
|
name: entity.name.type.class.module.definition.erlang
|
599
|
-
|
599
|
+
'5':
|
600
600
|
name: punctuation.definition.parameters.end.erlang
|
601
|
-
match:
|
602
|
-
define-directive:
|
603
|
-
patterns:
|
601
|
+
match: "^\\s*+(-)\\s*+(module)\\s*+(\\()\\s*+([a-z][a-zA-Z\\d@_]*+)\\s*+(\\))\\s*+(\\.)"
|
602
|
+
define-directive:
|
603
|
+
patterns:
|
604
604
|
- name: meta.directive.define.erlang
|
605
|
-
endCaptures:
|
606
|
-
|
605
|
+
endCaptures:
|
606
|
+
'1':
|
607
607
|
name: punctuation.definition.parameters.end.erlang
|
608
|
-
|
608
|
+
'2':
|
609
609
|
name: punctuation.section.directive.end.erlang
|
610
|
-
begin:
|
611
|
-
beginCaptures:
|
612
|
-
|
610
|
+
begin: "^\\s*+(-)\\s*+(define)\\s*+(\\()\\s*+([a-zA-Z\\d@_]++)\\s*+(,)"
|
611
|
+
beginCaptures:
|
612
|
+
'1':
|
613
613
|
name: punctuation.section.directive.begin.erlang
|
614
|
-
|
614
|
+
'2':
|
615
615
|
name: keyword.control.directive.define.erlang
|
616
|
-
|
616
|
+
'3':
|
617
617
|
name: punctuation.definition.parameters.begin.erlang
|
618
|
-
|
618
|
+
'4':
|
619
619
|
name: entity.name.function.macro.definition.erlang
|
620
|
-
|
620
|
+
'5':
|
621
621
|
name: punctuation.separator.parameters.erlang
|
622
|
-
end: (
|
623
|
-
patterns:
|
622
|
+
end: "(\\))\\s*+(\\.)"
|
623
|
+
patterns:
|
624
624
|
- include: "#everything-else"
|
625
625
|
- name: meta.directive.define.erlang
|
626
|
-
endCaptures:
|
627
|
-
|
626
|
+
endCaptures:
|
627
|
+
'1':
|
628
628
|
name: punctuation.definition.parameters.end.erlang
|
629
|
-
|
629
|
+
'2':
|
630
630
|
name: punctuation.section.directive.end.erlang
|
631
|
-
begin: (
|
632
|
-
end: (
|
633
|
-
patterns:
|
634
|
-
- endCaptures:
|
635
|
-
|
631
|
+
begin: "(?=^\\s*+-\\s*+define\\s*+\\(\\s*+[a-zA-Z\\d@_]++\\s*+\\()"
|
632
|
+
end: "(\\))\\s*+(\\.)"
|
633
|
+
patterns:
|
634
|
+
- endCaptures:
|
635
|
+
'1':
|
636
636
|
name: punctuation.definition.parameters.end.erlang
|
637
|
-
|
637
|
+
'2':
|
638
638
|
name: punctuation.separator.parameters.erlang
|
639
|
-
begin:
|
640
|
-
beginCaptures:
|
641
|
-
|
639
|
+
begin: "^\\s*+(-)\\s*+(define)\\s*+(\\()\\s*+([a-zA-Z\\d@_]++)\\s*+(\\()"
|
640
|
+
beginCaptures:
|
641
|
+
'1':
|
642
642
|
name: punctuation.section.directive.begin.erlang
|
643
|
-
|
643
|
+
'2':
|
644
644
|
name: keyword.control.directive.define.erlang
|
645
|
-
|
645
|
+
'3':
|
646
646
|
name: punctuation.definition.parameters.begin.erlang
|
647
|
-
|
647
|
+
'4':
|
648
648
|
name: entity.name.function.macro.definition.erlang
|
649
|
-
|
649
|
+
'5':
|
650
650
|
name: punctuation.definition.parameters.begin.erlang
|
651
|
-
end: (
|
652
|
-
patterns:
|
651
|
+
end: "(\\))\\s*(,)"
|
652
|
+
patterns:
|
653
653
|
- name: punctuation.separator.parameters.erlang
|
654
654
|
match: ","
|
655
655
|
- include: "#everything-else"
|
656
656
|
- name: punctuation.separator.define.erlang
|
657
|
-
match:
|
657
|
+
match: "\\|\\||\\||:|;|,|\\.|->"
|
658
658
|
- include: "#everything-else"
|
659
|
-
tuple:
|
659
|
+
tuple:
|
660
660
|
name: meta.structure.tuple.erlang
|
661
|
-
endCaptures:
|
662
|
-
|
661
|
+
endCaptures:
|
662
|
+
'1':
|
663
663
|
name: punctuation.definition.tuple.end.erlang
|
664
|
-
begin: (
|
665
|
-
beginCaptures:
|
666
|
-
|
664
|
+
begin: "(\\{)"
|
665
|
+
beginCaptures:
|
666
|
+
'1':
|
667
667
|
name: punctuation.definition.tuple.begin.erlang
|
668
|
-
end: (
|
669
|
-
patterns:
|
668
|
+
end: "(\\})"
|
669
|
+
patterns:
|
670
670
|
- name: punctuation.separator.tuple.erlang
|
671
671
|
match: ","
|
672
672
|
- include: "#everything-else"
|
673
|
-
textual-operator:
|
673
|
+
textual-operator:
|
674
674
|
name: keyword.operator.textual.erlang
|
675
|
-
match:
|
676
|
-
record-directive:
|
675
|
+
match: "\\b(andalso|band|and|bxor|xor|bor|orelse|or|bnot|not|bsl|bsr|div|rem)\\b"
|
676
|
+
record-directive:
|
677
677
|
name: meta.directive.record.erlang
|
678
|
-
endCaptures:
|
679
|
-
|
678
|
+
endCaptures:
|
679
|
+
'1':
|
680
680
|
name: meta.structure.record.erlang
|
681
|
-
|
681
|
+
'2':
|
682
682
|
name: punctuation.definition.class.record.end.erlang
|
683
|
-
|
683
|
+
'3':
|
684
684
|
name: punctuation.definition.parameters.end.erlang
|
685
|
-
|
685
|
+
'4':
|
686
686
|
name: punctuation.section.directive.end.erlang
|
687
|
-
begin:
|
688
|
-
beginCaptures:
|
689
|
-
|
687
|
+
begin: "^\\s*+(-)\\s*+(record)\\s*+(\\()\\s*+([a-z][a-zA-Z\\d@_]*+)\\s*+(,)"
|
688
|
+
beginCaptures:
|
689
|
+
'1':
|
690
690
|
name: punctuation.section.directive.begin.erlang
|
691
|
-
|
691
|
+
'2':
|
692
692
|
name: keyword.control.directive.import.erlang
|
693
|
-
|
693
|
+
'3':
|
694
694
|
name: punctuation.definition.parameters.begin.erlang
|
695
|
-
|
695
|
+
'4':
|
696
696
|
name: entity.name.type.class.record.definition.erlang
|
697
|
-
|
697
|
+
'5':
|
698
698
|
name: punctuation.separator.parameters.erlang
|
699
|
-
end: ((
|
700
|
-
patterns:
|
699
|
+
end: "((\\}))\\s*+(\\))\\s*+(\\.)"
|
700
|
+
patterns:
|
701
701
|
- include: "#internal-record-body"
|
702
|
-
function-call:
|
702
|
+
function-call:
|
703
703
|
name: meta.function-call.erlang
|
704
|
-
endCaptures:
|
705
|
-
|
704
|
+
endCaptures:
|
705
|
+
'1':
|
706
706
|
name: punctuation.definition.parameters.end.erlang
|
707
|
-
begin: (?=[a-z][a-zA-Z
|
708
|
-
end: (
|
709
|
-
patterns:
|
710
|
-
- begin: ((erlang)
|
711
|
-
beginCaptures:
|
712
|
-
|
707
|
+
begin: "(?=[a-z][a-zA-Z\\d@_]*+\\s*+(\\(|:\\s*+[a-z][a-zA-Z\\d@_]*+\\s*+\\())"
|
708
|
+
end: "(\\))"
|
709
|
+
patterns:
|
710
|
+
- begin: "((erlang)\\s*+(:)\\s*+)?(is_atom|is_binary|is_constant|is_float|is_function|is_integer|is_list|is_number|is_pid|is_port|is_reference|is_tuple|is_record|abs|element|hd|length|node|round|self|size|tl|trunc)\\s*+(\\()"
|
711
|
+
beginCaptures:
|
712
|
+
'2':
|
713
713
|
name: entity.name.type.class.module.erlang
|
714
|
-
|
714
|
+
'3':
|
715
715
|
name: punctuation.separator.module-function.erlang
|
716
|
-
|
716
|
+
'4':
|
717
717
|
name: entity.name.function.guard.erlang
|
718
|
-
|
718
|
+
'5':
|
719
719
|
name: punctuation.definition.parameters.begin.erlang
|
720
|
-
end: (
|
721
|
-
patterns:
|
720
|
+
end: "(?=\\))"
|
721
|
+
patterns:
|
722
722
|
- name: punctuation.separator.parameters.erlang
|
723
723
|
match: ","
|
724
724
|
- include: "#everything-else"
|
725
|
-
- begin: (([a-z][a-zA-Z
|
726
|
-
beginCaptures:
|
727
|
-
|
725
|
+
- begin: "(([a-z][a-zA-Z\\d@_]*+)\\s*+(:)\\s*+)?([a-z][a-zA-Z\\d@_]*+)\\s*+(\\()"
|
726
|
+
beginCaptures:
|
727
|
+
'2':
|
728
728
|
name: entity.name.type.class.module.erlang
|
729
|
-
|
729
|
+
'3':
|
730
730
|
name: punctuation.separator.module-function.erlang
|
731
|
-
|
731
|
+
'4':
|
732
732
|
name: entity.name.function.erlang
|
733
|
-
|
733
|
+
'5':
|
734
734
|
name: punctuation.definition.parameters.begin.erlang
|
735
|
-
end: (
|
736
|
-
patterns:
|
735
|
+
end: "(?=\\))"
|
736
|
+
patterns:
|
737
737
|
- name: punctuation.separator.parameters.erlang
|
738
738
|
match: ","
|
739
739
|
- include: "#everything-else"
|
740
|
-
everything-else:
|
741
|
-
patterns:
|
740
|
+
everything-else:
|
741
|
+
patterns:
|
742
742
|
- include: "#comment"
|
743
743
|
- include: "#record-usage"
|
744
744
|
- include: "#macro-usage"
|
@@ -756,160 +756,160 @@ repository:
|
|
756
756
|
- include: "#string"
|
757
757
|
- include: "#symbolic-operator"
|
758
758
|
- include: "#variable"
|
759
|
-
record-usage:
|
760
|
-
patterns:
|
759
|
+
record-usage:
|
760
|
+
patterns:
|
761
761
|
- name: meta.record-usage.erlang
|
762
|
-
captures:
|
763
|
-
|
762
|
+
captures:
|
763
|
+
'1':
|
764
764
|
name: keyword.operator.record.erlang
|
765
|
-
|
765
|
+
'2':
|
766
766
|
name: entity.name.type.class.record.erlang
|
767
|
-
|
767
|
+
'3':
|
768
768
|
name: punctuation.separator.record-field.erlang
|
769
|
-
|
769
|
+
'4':
|
770
770
|
name: variable.other.field.erlang
|
771
|
-
match: (#)
|
771
|
+
match: "(#)\\s*+([a-z][a-zA-Z\\d@_]*+)\\s*+(\\.)\\s*+([a-z][a-zA-Z\\d@_]*+)"
|
772
772
|
- name: meta.record-usage.erlang
|
773
|
-
endCaptures:
|
774
|
-
|
773
|
+
endCaptures:
|
774
|
+
'1':
|
775
775
|
name: meta.structure.record.erlang
|
776
|
-
|
776
|
+
'2':
|
777
777
|
name: punctuation.definition.class.record.end.erlang
|
778
|
-
begin: (#)
|
779
|
-
beginCaptures:
|
780
|
-
|
778
|
+
begin: "(#)\\s*+([a-z][a-zA-Z\\d@_]*+)"
|
779
|
+
beginCaptures:
|
780
|
+
'1':
|
781
781
|
name: keyword.operator.record.erlang
|
782
|
-
|
782
|
+
'2':
|
783
783
|
name: entity.name.type.class.record.erlang
|
784
|
-
end: ((
|
785
|
-
patterns:
|
784
|
+
end: "((\\}))"
|
785
|
+
patterns:
|
786
786
|
- include: "#internal-record-body"
|
787
|
-
parenthesized-expression:
|
787
|
+
parenthesized-expression:
|
788
788
|
name: meta.expression.parenthesized
|
789
|
-
endCaptures:
|
790
|
-
|
789
|
+
endCaptures:
|
790
|
+
'1':
|
791
791
|
name: punctuation.section.expression.end.erlang
|
792
|
-
begin: (
|
793
|
-
beginCaptures:
|
794
|
-
|
792
|
+
begin: "(\\()"
|
793
|
+
beginCaptures:
|
794
|
+
'1':
|
795
795
|
name: punctuation.section.expression.begin.erlang
|
796
|
-
end: (
|
797
|
-
patterns:
|
796
|
+
end: "(\\))"
|
797
|
+
patterns:
|
798
798
|
- include: "#everything-else"
|
799
|
-
keyword:
|
799
|
+
keyword:
|
800
800
|
name: keyword.control.erlang
|
801
|
-
match:
|
802
|
-
internal-function-parts:
|
803
|
-
patterns:
|
804
|
-
- endCaptures:
|
805
|
-
|
801
|
+
match: "\\b(after|begin|case|catch|cond|end|fun|if|let|of|query|try|receive|when)\\b"
|
802
|
+
internal-function-parts:
|
803
|
+
patterns:
|
804
|
+
- endCaptures:
|
805
|
+
'1':
|
806
806
|
name: punctuation.separator.clause-head-body.erlang
|
807
|
-
begin: (
|
808
|
-
end: (->)
|
809
|
-
patterns:
|
810
|
-
- endCaptures:
|
811
|
-
|
807
|
+
begin: "(?=\\()"
|
808
|
+
end: "(->)"
|
809
|
+
patterns:
|
810
|
+
- endCaptures:
|
811
|
+
'1':
|
812
812
|
name: punctuation.definition.parameters.end.erlang
|
813
|
-
begin: (
|
814
|
-
beginCaptures:
|
815
|
-
|
813
|
+
begin: "(\\()"
|
814
|
+
beginCaptures:
|
815
|
+
'1':
|
816
816
|
name: punctuation.definition.parameters.begin.erlang
|
817
|
-
end: (
|
818
|
-
patterns:
|
817
|
+
end: "(\\))"
|
818
|
+
patterns:
|
819
819
|
- name: punctuation.separator.parameters.erlang
|
820
820
|
match: ","
|
821
821
|
- include: "#everything-else"
|
822
822
|
- name: punctuation.separator.guards.erlang
|
823
|
-
match: ,|;
|
823
|
+
match: ",|;"
|
824
824
|
- include: "#everything-else"
|
825
825
|
- name: punctuation.separator.expressions.erlang
|
826
826
|
match: ","
|
827
827
|
- include: "#everything-else"
|
828
|
-
comment:
|
828
|
+
comment:
|
829
829
|
name: comment.line.erlang
|
830
|
-
begin: (%)
|
831
|
-
beginCaptures:
|
832
|
-
|
830
|
+
begin: "(%)"
|
831
|
+
beginCaptures:
|
832
|
+
'1':
|
833
833
|
name: punctuation.definition.comment.erlang
|
834
|
-
end:
|
835
|
-
variable:
|
836
|
-
captures:
|
837
|
-
|
834
|
+
end: "$\\n?"
|
835
|
+
variable:
|
836
|
+
captures:
|
837
|
+
'1':
|
838
838
|
name: variable.other.erlang
|
839
|
-
|
839
|
+
'2':
|
840
840
|
name: variable.language.omitted.erlang
|
841
|
-
match: (_[a-zA-Z
|
842
|
-
string:
|
841
|
+
match: "(_[a-zA-Z\\d@_]++|[A-Z][a-zA-Z\\d@_]*+)|(_)"
|
842
|
+
string:
|
843
843
|
name: string.quoted.double.erlang
|
844
|
-
endCaptures:
|
845
|
-
|
844
|
+
endCaptures:
|
845
|
+
'1':
|
846
846
|
name: punctuation.definition.string.end.erlang
|
847
|
-
begin: (")
|
848
|
-
beginCaptures:
|
849
|
-
|
847
|
+
begin: "(\")"
|
848
|
+
beginCaptures:
|
849
|
+
'1':
|
850
850
|
name: punctuation.definition.string.begin.erlang
|
851
|
-
end: (")
|
852
|
-
patterns:
|
851
|
+
end: "(\")"
|
852
|
+
patterns:
|
853
853
|
- name: constant.character.escape.erlang
|
854
|
-
captures:
|
855
|
-
|
854
|
+
captures:
|
855
|
+
'1':
|
856
856
|
name: punctuation.definition.escape.erlang
|
857
|
-
|
857
|
+
'3':
|
858
858
|
name: punctuation.definition.escape.erlang
|
859
|
-
match: (
|
859
|
+
match: "(\\\\)([bdefnrstv\\\\'\"]|(\\^)[@-_]|[0-7]{1,3})"
|
860
860
|
- name: invalid.illegal.string.erlang
|
861
|
-
match:
|
861
|
+
match: "\\\\\\^?.?"
|
862
862
|
- name: constant.other.placeholder.erlang
|
863
|
-
captures:
|
864
|
-
|
863
|
+
captures:
|
864
|
+
'6':
|
865
865
|
name: punctuation.separator.placeholder-parts.erlang
|
866
|
-
|
866
|
+
'12':
|
867
867
|
name: punctuation.separator.placeholder-parts.erlang
|
868
|
-
|
868
|
+
'8':
|
869
869
|
name: punctuation.separator.placeholder-parts.erlang
|
870
|
-
|
870
|
+
'1':
|
871
871
|
name: punctuation.definition.placeholder.erlang
|
872
|
-
|
872
|
+
'3':
|
873
873
|
name: punctuation.separator.placeholder-parts.erlang
|
874
|
-
|
874
|
+
'4':
|
875
875
|
name: punctuation.separator.placeholder-parts.erlang
|
876
|
-
|
876
|
+
'10':
|
877
877
|
name: punctuation.separator.placeholder-parts.erlang
|
878
|
-
match: (~)((
|
878
|
+
match: "(~)((\\-)?\\d++|(\\*))?((\\.)(\\d++|(\\*)))?((\\.)((\\*)|.))?[~cfegswpWPBX#bx\\+ni]"
|
879
879
|
- name: constant.other.placeholder.erlang
|
880
|
-
captures:
|
881
|
-
|
880
|
+
captures:
|
881
|
+
'1':
|
882
882
|
name: punctuation.definition.placeholder.erlang
|
883
|
-
|
883
|
+
'2':
|
884
884
|
name: punctuation.separator.placeholder-parts.erlang
|
885
|
-
match: (~)(
|
885
|
+
match: "(~)(\\*)?(\\d++)?[~du\\-#fsacl]"
|
886
886
|
- name: invalid.illegal.string.erlang
|
887
|
-
match: ~.?
|
888
|
-
atom:
|
889
|
-
patterns:
|
887
|
+
match: "~.?"
|
888
|
+
atom:
|
889
|
+
patterns:
|
890
890
|
- name: constant.other.symbol.quoted.single.erlang
|
891
|
-
endCaptures:
|
892
|
-
|
891
|
+
endCaptures:
|
892
|
+
'1':
|
893
893
|
name: punctuation.definition.symbol.end.erlang
|
894
|
-
begin: (')
|
895
|
-
beginCaptures:
|
896
|
-
|
894
|
+
begin: "(')"
|
895
|
+
beginCaptures:
|
896
|
+
'1':
|
897
897
|
name: punctuation.definition.symbol.begin.erlang
|
898
|
-
end: (')
|
899
|
-
patterns:
|
898
|
+
end: "(')"
|
899
|
+
patterns:
|
900
900
|
- name: constant.other.symbol.escape.erlang
|
901
|
-
captures:
|
902
|
-
|
901
|
+
captures:
|
902
|
+
'1':
|
903
903
|
name: punctuation.definition.escape.erlang
|
904
|
-
|
904
|
+
'3':
|
905
905
|
name: punctuation.definition.escape.erlang
|
906
|
-
match: (
|
906
|
+
match: "(\\\\)([bdefnrstv\\\\'\"]|(\\^)[@-_]|[0-7]{1,3})"
|
907
907
|
- name: invalid.illegal.atom.erlang
|
908
|
-
match:
|
908
|
+
match: "\\\\\\^?.?"
|
909
909
|
- name: constant.other.symbol.unquoted.erlang
|
910
910
|
match: "[a-z][a-zA-Z\\d@_]*+"
|
911
911
|
uuid: 58EA597D-5158-4BF7-9FB2-B05135D1E166
|
912
|
-
patterns:
|
912
|
+
patterns:
|
913
913
|
- include: "#module-directive"
|
914
914
|
- include: "#import-export-directive"
|
915
915
|
- include: "#record-directive"
|
@@ -918,5 +918,8 @@ patterns:
|
|
918
918
|
- include: "#directive"
|
919
919
|
- include: "#function"
|
920
920
|
- include: "#everything-else"
|
921
|
-
keyEquivalent: ^~E
|
922
|
-
comment: The recognition of function definitions and compiler directives (such as
|
921
|
+
keyEquivalent: "^~E"
|
922
|
+
comment: The recognition of function definitions and compiler directives (such as
|
923
|
+
module, record and macro definitions) requires that each of the aforementioned constructs
|
924
|
+
must be the first string inside a line (except for whitespace). Also, the function/module/record/macro
|
925
|
+
names must be given unquoted. -- desp
|