github-linguist 6.0.1 → 6.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/grammars/annotation.liquidhaskell.haskell.json +13 -4
- data/grammars/hint.haskell.json +13 -4
- data/grammars/hint.message.haskell.json +13 -4
- data/grammars/hint.type.haskell.json +13 -4
- data/grammars/source.angelscript.json +1 -1
- data/grammars/source.ballerina.json +25 -2
- data/grammars/source.batchfile.json +69 -38
- data/grammars/source.c.json +1 -1
- data/grammars/source.clarion.json +4 -4
- data/grammars/source.cs.json +3952 -780
- data/grammars/source.elixir.json +7 -7
- data/grammars/source.fortran.json +38 -35
- data/grammars/source.fortran.modern.json +6 -6
- data/grammars/source.graphql.json +55 -2
- data/grammars/source.haskell.json +13 -4
- data/grammars/source.hsig.json +13 -4
- data/grammars/source.hx.json +2309 -0
- data/grammars/source.hxml.json +37 -5
- data/grammars/source.isabelle.theory.json +7 -7
- data/grammars/source.js.json +39 -54
- data/grammars/source.js.regexp.json +11 -5
- data/grammars/source.julia.json +16 -5
- data/grammars/{source.Kotlin.json → source.kotlin.json} +118 -33
- data/grammars/source.mathematica.json +0 -1
- data/grammars/source.meson.json +4 -0
- data/grammars/source.mupad.json +36 -12
- data/grammars/source.netlinx.erb.json +1 -2
- data/grammars/source.netlinx.json +0 -3
- data/grammars/source.nextflow.json +7 -7
- data/grammars/source.perl.json +1 -1
- data/grammars/source.renpy.json +436 -648
- data/grammars/source.scala.json +133 -87
- data/grammars/source.sed.json +1520 -0
- data/grammars/source.shell.json +17 -17
- data/grammars/source.solidity.json +1 -1
- data/grammars/source.swift.json +1 -1
- data/grammars/source.terraform.json +1 -1
- data/grammars/source.ts.json +493 -122
- data/grammars/source.tsx.json +568 -191
- data/grammars/source.x86.json +295 -0
- data/grammars/source.yaml.json +41 -21
- data/grammars/source.yara.json +1 -1
- data/grammars/text.haml.json +15 -0
- data/grammars/text.html.creole.json +1 -1
- data/grammars/text.html.php.blade.json +2 -2
- data/grammars/text.html.php.json +55 -134
- data/grammars/text.html.smarty.json +25 -1
- data/grammars/text.html.vue.json +0 -6
- data/grammars/text.restructuredtext.json +110 -17
- data/grammars/text.tex.latex.haskell.json +13 -4
- data/lib/linguist/documentation.yml +1 -0
- data/lib/linguist/generated.rb +9 -1
- data/lib/linguist/heuristics.rb +2 -0
- data/lib/linguist/language.rb +0 -8
- data/lib/linguist/languages.json +1 -1
- data/lib/linguist/languages.yml +103 -7
- data/lib/linguist/linguist.bundle +0 -0
- data/lib/linguist/samples.json +1221 -262
- data/lib/linguist/shebang.rb +7 -4
- data/lib/linguist/strategy/extension.rb +15 -2
- data/lib/linguist/strategy/filename.rb +15 -2
- data/lib/linguist/vendor.yml +7 -0
- data/lib/linguist/version.rb +1 -1
- metadata +17 -19
- data/grammars/source.erazor.json +0 -118
- data/grammars/source.haxe.2.json +0 -1267
- data/grammars/source.hss.1.json +0 -442
- data/grammars/source.nmml.json +0 -81
- data/grammars/source.sbt.json +0 -39
data/grammars/source.hss.1.json
DELETED
@@ -1,442 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "HSS",
|
3
|
-
"scopeName": "source.hss.1",
|
4
|
-
"patterns": [
|
5
|
-
{},
|
6
|
-
{},
|
7
|
-
{
|
8
|
-
"include": "#rules"
|
9
|
-
},
|
10
|
-
{},
|
11
|
-
{
|
12
|
-
"include": "#property_list"
|
13
|
-
}
|
14
|
-
],
|
15
|
-
"repository": {
|
16
|
-
"comment_block": {
|
17
|
-
"name": "comment.block.hss",
|
18
|
-
"begin": "\\s{0,}/\\*",
|
19
|
-
"end": "(\\*/)\\s{0,}",
|
20
|
-
"captures": {
|
21
|
-
"0": {
|
22
|
-
"name": "punctuation.whitespace.comment.trailing.hss"
|
23
|
-
}
|
24
|
-
}
|
25
|
-
},
|
26
|
-
"comment_line": {
|
27
|
-
"name": "comment.line.hss",
|
28
|
-
"begin": "(\\s{0,})//",
|
29
|
-
"end": "$(\\s{0,})"
|
30
|
-
},
|
31
|
-
"constant_color": {
|
32
|
-
"name": "support.constant.color.w3c-standard-color-name.css",
|
33
|
-
"match": "\\b(aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)\\b"
|
34
|
-
},
|
35
|
-
"constant_depracated_color": {
|
36
|
-
"name": "invalid.deprecated.color.w3c-non-standard-color-name.css",
|
37
|
-
"match": "\\b(aliceblue|antiquewhite|aquamarine|azure|beige|bisque|blanchedalmond|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|gainsboro|ghostwhite|gold|goldenrod|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|limegreen|linen|magenta|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|oldlace|olivedrab|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|thistle|tomato|turquoise|violet|wheat|whitesmoke|yellowgreen)\\b"
|
38
|
-
},
|
39
|
-
"constant_font": {
|
40
|
-
"name": "support.constant.font-name.css",
|
41
|
-
"match": "(\\b(?i:arial|century|comic|courier|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace)\\b)"
|
42
|
-
},
|
43
|
-
"constant_functions": {
|
44
|
-
"begin": "([\\w-]{1,})\\s*(\\()",
|
45
|
-
"end": "(\\))",
|
46
|
-
"patterns": [
|
47
|
-
{
|
48
|
-
"include": "#general"
|
49
|
-
}
|
50
|
-
],
|
51
|
-
"beginCaptures": {
|
52
|
-
"1": {
|
53
|
-
"name": "support.function.misc.css"
|
54
|
-
},
|
55
|
-
"2": {
|
56
|
-
"name": "punctuation.section.function.css"
|
57
|
-
}
|
58
|
-
},
|
59
|
-
"endCaptures": {
|
60
|
-
"1": {
|
61
|
-
"name": "punctuation.section.function.css"
|
62
|
-
}
|
63
|
-
}
|
64
|
-
},
|
65
|
-
"constant_hex": {
|
66
|
-
"name": "constant.other.color.rgb-value.css",
|
67
|
-
"match": "(#)([0-9a-fA-F]{3}|[0-9a-fA-F]{6})\\b",
|
68
|
-
"captures": {
|
69
|
-
"1": {
|
70
|
-
"name": "punctuation.definition.constant.css"
|
71
|
-
}
|
72
|
-
}
|
73
|
-
},
|
74
|
-
"constant_important": {
|
75
|
-
"name": "keyword.other.important.css",
|
76
|
-
"match": "\\!\\s*important"
|
77
|
-
},
|
78
|
-
"constant_number": {
|
79
|
-
"name": "constant.numeric.css",
|
80
|
-
"match": "(-|\\+)?\\s*[0-9]+(\\.[0-9]+)?"
|
81
|
-
},
|
82
|
-
"constant_property_value": {
|
83
|
-
"name": "support.constant.property-value.css",
|
84
|
-
"match": "\\b(absolute|all-scroll|always|armenian|auto|baseline|below|bidi-override|block|bold|bolder|both|bottom|break-all|break-word|capitalize|center|char|circle|cjk-ideographic|col-resize|collapse|crosshair|dashed|decimal-leading-zero|decimal|default|disabled|disc|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ellipsis|fixed|georgian|groove|hand|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|inactive|inherit|inline-block|inline|inset|inside|inter-ideograph|inter-word|italic|justify|katakana-iroha|katakana|keep-all|left|lighter|line-edge|line-through|line|list-item|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|medium|middle|move|n-resize|ne-resize|newspaper|no-drop|no-repeat|nw-resize|none|normal|not-allowed|nowrap|oblique|outset|outside|overline|pointer|progress|relative|repeat-x|repeat-y|repeat|right|ridge|row-resize|rtl|s-resize|scroll|se-resize|separate|small-caps|solid|square|static|strict|super|sw-resize|table-footer-group|table-header-group|tb-rl|text-bottom|text-top|text|thick|thin|top|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|zero)\\b"
|
85
|
-
},
|
86
|
-
"constant_rgb": {
|
87
|
-
"name": "constant.other.color.rgb-value.css",
|
88
|
-
"match": "(\\b0*((1?[0-9]{1,2})|(2([0-4][0-9]|5[0-5])))\\s*,\\s*)(0*((1?[0-9]{1,2})|(2([0-4][0-9]|5[0-5])))\\s*,\\s*)(0*((1?[0-9]{1,2})|(2([0-4][0-9]|5[0-5])))\\b)"
|
89
|
-
},
|
90
|
-
"constant_rgb_percentage": {
|
91
|
-
"name": "constant.other.color.rgb-percentage.css",
|
92
|
-
"match": "\\b([0-9]{1,2}|100)\\s*%,\\s*([0-9]{1,2}|100)\\s*%,\\s*([0-9]{1,2}|100)\\s*%"
|
93
|
-
},
|
94
|
-
"constant_unit": {
|
95
|
-
"name": "keyword.other.unit.css",
|
96
|
-
"match": "(?\u003c=[\\d])(px|pt|cm|mm|in|em|ex|pc)\\b|%"
|
97
|
-
},
|
98
|
-
"general": {
|
99
|
-
"patterns": [
|
100
|
-
{
|
101
|
-
"include": "#variable"
|
102
|
-
},
|
103
|
-
{
|
104
|
-
"include": "#comment_block"
|
105
|
-
},
|
106
|
-
{
|
107
|
-
"include": "#comment_line"
|
108
|
-
}
|
109
|
-
]
|
110
|
-
},
|
111
|
-
"interpolation": {
|
112
|
-
"name": "variable.interpolation.hss",
|
113
|
-
"begin": "#\\{",
|
114
|
-
"end": "\\}",
|
115
|
-
"patterns": [
|
116
|
-
{
|
117
|
-
"include": "#variable"
|
118
|
-
}
|
119
|
-
]
|
120
|
-
},
|
121
|
-
"invalid_var_scope": {
|
122
|
-
"name": "invalid.illegal",
|
123
|
-
"match": "\\bvar\\b"
|
124
|
-
},
|
125
|
-
"property_list": {
|
126
|
-
"name": "meta.property-list.css",
|
127
|
-
"begin": "\\{",
|
128
|
-
"end": "\\}",
|
129
|
-
"patterns": [
|
130
|
-
{
|
131
|
-
"include": "#variable_setting"
|
132
|
-
},
|
133
|
-
{
|
134
|
-
"include": "#rules"
|
135
|
-
}
|
136
|
-
],
|
137
|
-
"captures": {
|
138
|
-
"0": {
|
139
|
-
"name": "punctuation.section.property-list.css"
|
140
|
-
}
|
141
|
-
}
|
142
|
-
},
|
143
|
-
"property_name": {
|
144
|
-
"name": "support.type.property-name.css",
|
145
|
-
"match": "\\b(z-index|y|x|wrap|word-wrap|word-spacing|word-break|word|width|widows|white-space-collapse|white-space|white|weight|volume|voice-volume|voice-stress|voice-rate|voice-pitch-range|voice-pitch|voice-family|voice-duration|voice-balance|voice|visibility|vertical-align|variant|up|unicode-bidi|unicode|trim|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform|top-width|top-style|top-right-radius|top-left-radius|top-color|top|timing-function|text-wrap|text-transform|text-shadow|text-replace|text-outline|text-justify|text-indent|text-height|text-emphasis|text-decoration|text-align-last|text-align|text|target-position|target-new|target-name|target|table-layout|tab-side|style-type|style-position|style-image|style|string-set|stretch|stress|stacking-strategy|stacking-shift|stacking-ruby|stacking|speed|speech-rate|speech|speak-punctuation|speak-numeral|speak-header|speak|span|spacing|space-collapse|space|sizing|size-adjust|size|shadow|rule-width|rule-style|rule-color|rule|ruby-span|ruby-position|ruby-overhang|ruby-align|ruby|rows|rotation-point|rotation|role|right-width|right-style|right-color|right|richness|rest-before|rest-after|rest|resource|resolution|resize|reset|replace|repeat|rendering-intent|rate|radius|quotes|punctuation-trim|punctuation|property|profile|presentation-level|presentation|position|point|play-state|play-during|play-count|pitch-range|pitch|phonemes|pause-before|pause-after|pause|page-policy|page-break-inside|page-break-before|page-break-after|page|padding-top|padding-right|padding-left|padding-bottom|padding|pack|overhang|overflow-y|overflow-x|overflow-style|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|origin|orientation|orient|ordinal-group|opacity|offset|numeral|new|nav-up|nav-right|nav-left|nav-index|nav-down|nav|name|move-to|model|min-width|min-height|min|max-width|max-height|max|marquee-style|marquee-speed|marquee-play-count|marquee-direction|marquee|marks|mark-before|mark-after|mark|margin-top|margin-right|margin-left|margin-bottom|margin|list-style-type|list-style-position|list-style-image|list-style|list|lines|line-stacking-strategy|line-stacking-shift|line-stacking-ruby|line-stacking|line-height|line|level|letter-spacing|length|left-width|left-style|left-color|left|label|justify|iteration-count|inline-box-align|initial-value|initial-size|initial-before-align|initial-before-adjust|initial-after-align|initial-after-adjust|index|indent|increment|image-resolution|image-orientation|image|icon|hyphens|hyphenate-resource|hyphenate-lines|hyphenate-character|hyphenate-before|hyphenate-after|hyphenate|height|header|hanging-punctuation|grid-rows|grid-columns|grid|gap|font-weight|font-variant|font-style|font-stretch|font-size-adjust|font-size|font-family|font|float-offset|float|flex-group|flex|fit-position|fit|fill|family|empty-cells|emphasis|elevation|duration|drop-initial-value|drop-initial-size|drop-initial-before-align|drop-initial-before-adjust|drop-initial-after-align|drop-initial-after-adjust|drop|down|dominant-baseline|display-role|display-model|display|direction|delay|decoration-break|decoration|cursor|cue-before|cue-after|cue|crop|counter-reset|counter-increment|counter|count|content|columns|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|column-break-before|column-break-after|column|color-profile|color|collapse|clip|clear|character|caption-side|break-inside|break-before|break-after|break|box-sizing|box-shadow|box-pack|box-orient|box-ordinal-group|box-lines|box-flex-group|box-flex|box-direction|box-decoration-break|box-align|box|bottom-width|bottom-style|bottom-right-radius|bottom-left-radius|bottom-color|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-length|border-left-width|border-left-style|border-left-color|border-left|border-image|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border|bookmark-target|bookmark-level|bookmark-label|bookmark|binding|bidi|before|baseline-shift|baseline|balance|background-size|background-repeat|background-position|background-origin|background-image|background-color|background-clip|background-break|background-attachment|background|azimuth|attachment|appearance|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-duration|animation-direction|animation-delay|animation|alignment-baseline|alignment-adjust|alignment|align-last|align|after|adjust)\\b"
|
146
|
-
},
|
147
|
-
"property_name_error": {
|
148
|
-
"name": "invalid.illegal",
|
149
|
-
"match": "(?\u003c![a-z-])(?!z-index\\b|y\\b|x\\b|wrap\\b|word-wrap\\b|word-spacing\\b|word-break\\b|word\\b|width\\b|widows\\b|white-space-collapse\\b|white-space\\b|white\\b|weight\\b|volume\\b|voice-volume\\b|voice-stress\\b|voice-rate\\b|voice-pitch-range\\b|voice-pitch\\b|voice-family\\b|voice-duration\\b|voice-balance\\b|voice\\b|visibility\\b|vertical-align\\b|variant\\b|up\\b|unicode-bidi\\b|unicode\\b|trim\\b|transition-timing-function\\b|transition-property\\b|transition-duration\\b|transition-delay\\b|transition\\b|transform\\b|top-width\\b|top-style\\b|top-right-radius\\b|top-left-radius\\b|top-color\\b|top\\b|timing-function\\b|text-wrap\\b|text-transform\\b|text-shadow\\b|text-replace\\b|text-outline\\b|text-justify\\b|text-indent\\b|text-height\\b|text-emphasis\\b|text-decoration\\b|text-align-last\\b|text-align\\b|text\\b|target-position\\b|target-new\\b|target-name\\b|target\\b|table-layout\\b|tab-side\\b|style-type\\b|style-position\\b|style-image\\b|style\\b|string-set\\b|stretch\\b|stress\\b|stacking-strategy\\b|stacking-shift\\b|stacking-ruby\\b|stacking\\b|speed\\b|speech-rate\\b|speech\\b|speak-punctuation\\b|speak-numeral\\b|speak-header\\b|speak\\b|span\\b|spacing\\b|space-collapse\\b|space\\b|sizing\\b|size-adjust\\b|size\\b|shadow\\b|rule-width\\b|rule-style\\b|rule-color\\b|rule\\b|ruby-span\\b|ruby-position\\b|ruby-overhang\\b|ruby-align\\b|ruby\\b|rows\\b|rotation-point\\b|rotation\\b|role\\b|right-width\\b|right-style\\b|right-color\\b|right\\b|richness\\b|rest-before\\b|rest-after\\b|rest\\b|resource\\b|resolution\\b|resize\\b|reset\\b|replace\\b|repeat\\b|rendering-intent\\b|rate\\b|radius\\b|quotes\\b|punctuation-trim\\b|punctuation\\b|property\\b|profile\\b|presentation-level\\b|presentation\\b|position\\b|point\\b|play-state\\b|play-during\\b|play-count\\b|pitch-range\\b|pitch\\b|phonemes\\b|pause-before\\b|pause-after\\b|pause\\b|page-policy\\b|page-break-inside\\b|page-break-before\\b|page-break-after\\b|page\\b|padding-top\\b|padding-right\\b|padding-left\\b|padding-bottom\\b|padding\\b|pack\\b|overhang\\b|overflow-y\\b|overflow-x\\b|overflow-style\\b|overflow\\b|outline-width\\b|outline-style\\b|outline-offset\\b|outline-color\\b|outline\\b|orphans\\b|origin\\b|orientation\\b|orient\\b|ordinal-group\\b|opacity\\b|offset\\b|numeral\\b|new\\b|nav-up\\b|nav-right\\b|nav-left\\b|nav-index\\b|nav-down\\b|nav\\b|name\\b|move-to\\b|model\\b|min-width\\b|min-height\\b|min\\b|max-width\\b|max-height\\b|max\\b|marquee-style\\b|marquee-speed\\b|marquee-play-count\\b|marquee-direction\\b|marquee\\b|marks\\b|mark-before\\b|mark-after\\b|mark\\b|margin-top\\b|margin-right\\b|margin-left\\b|margin-bottom\\b|margin\\b|list-style-type\\b|list-style-position\\b|list-style-image\\b|list-style\\b|list\\b|lines\\b|line-stacking-strategy\\b|line-stacking-shift\\b|line-stacking-ruby\\b|line-stacking\\b|line-height\\b|line\\b|level\\b|letter-spacing\\b|length\\b|left-width\\b|left-style\\b|left-color\\b|left\\b|label\\b|justify\\b|iteration-count\\b|inline-box-align\\b|initial-value\\b|initial-size\\b|initial-before-align\\b|initial-before-adjust\\b|initial-after-align\\b|initial-after-adjust\\b|index\\b|indent\\b|increment\\b|image-resolution\\b|image-orientation\\b|image\\b|icon\\b|hyphens\\b|hyphenate-resource\\b|hyphenate-lines\\b|hyphenate-character\\b|hyphenate-before\\b|hyphenate-after\\b|hyphenate\\b|height\\b|header\\b|hanging-punctuation\\b|grid-rows\\b|grid-columns\\b|grid\\b|gap\\b|font-weight\\b|font-variant\\b|font-style\\b|font-stretch\\b|font-size-adjust\\b|font-size\\b|font-family\\b|font\\b|float-offset\\b|float\\b|flex-group\\b|flex\\b|fit-position\\b|fit\\b|fill\\b|family\\b|empty-cells\\b|emphasis\\b|elevation\\b|duration\\b|drop-initial-value\\b|drop-initial-size\\b|drop-initial-before-align\\b|drop-initial-before-adjust\\b|drop-initial-after-align\\b|drop-initial-after-adjust\\b|drop\\b|down\\b|dominant-baseline\\b|display-role\\b|display-model\\b|display\\b|direction\\b|delay\\b|decoration-break\\b|decoration\\b|cursor\\b|cue-before\\b|cue-after\\b|cue\\b|crop\\b|counter-reset\\b|counter-increment\\b|counter\\b|count\\b|content\\b|columns\\b|column-width\\b|column-span\\b|column-rule-width\\b|column-rule-style\\b|column-rule-color\\b|column-rule\\b|column-gap\\b|column-fill\\b|column-count\\b|column-break-before\\b|column-break-after\\b|column\\b|color-profile\\b|color\\b|collapse\\b|clip\\b|clear\\b|character\\b|caption-side\\b|break-inside\\b|break-before\\b|break-after\\b|break\\b|box-sizing\\b|box-shadow\\b|box-pack\\b|box-orient\\b|box-ordinal-group\\b|box-lines\\b|box-flex-group\\b|box-flex\\b|box-direction\\b|box-decoration-break\\b|box-align\\b|box\\b|bottom-width\\b|bottom-style\\b|bottom-right-radius\\b|bottom-left-radius\\b|bottom-color\\b|bottom\\b|border-width\\b|border-top-width\\b|border-top-style\\b|border-top-right-radius\\b|border-top-left-radius\\b|border-top-color\\b|border-top\\b|border-style\\b|border-spacing\\b|border-right-width\\b|border-right-style\\b|border-right-color\\b|border-right\\b|border-radius\\b|border-length\\b|border-left-width\\b|border-left-style\\b|border-left-color\\b|border-left\\b|border-image\\b|border-color\\b|border-collapse\\b|border-bottom-width\\b|border-bottom-style\\b|border-bottom-right-radius\\b|border-bottom-left-radius\\b|border-bottom-color\\b|border-bottom\\b|border\\b|bookmark-target\\b|bookmark-level\\b|bookmark-label\\b|bookmark\\b|binding\\b|bidi\\b|before\\b|baseline-shift\\b|baseline\\b|balance\\b|background-size\\b|background-repeat\\b|background-position\\b|background-origin\\b|background-image\\b|background-color\\b|background-clip\\b|background-break\\b|background-attachment\\b|background\\b|azimuth\\b|attachment\\b|appearance\\b|animation-timing-function\\b|animation-play-state\\b|animation-name\\b|animation-iteration-count\\b|animation-duration\\b|animation-direction\\b|animation-delay\\b|animation\\b|alignment-baseline\\b|alignment-adjust\\b|alignment\\b|align-last\\b|align\\b|after\\b|adjust\\b)[a-z\\-\\_]+"
|
150
|
-
},
|
151
|
-
"property_names": {
|
152
|
-
"patterns": [
|
153
|
-
{
|
154
|
-
"include": "#property_name"
|
155
|
-
},
|
156
|
-
{
|
157
|
-
"include": "#property_name_error"
|
158
|
-
}
|
159
|
-
]
|
160
|
-
},
|
161
|
-
"property_values": {
|
162
|
-
"patterns": [
|
163
|
-
{
|
164
|
-
"include": "#string_single"
|
165
|
-
},
|
166
|
-
{
|
167
|
-
"include": "#string_double"
|
168
|
-
},
|
169
|
-
{
|
170
|
-
"include": "#constant_functions"
|
171
|
-
},
|
172
|
-
{
|
173
|
-
"include": "#constant_hex"
|
174
|
-
},
|
175
|
-
{
|
176
|
-
"include": "#constant_rgb"
|
177
|
-
},
|
178
|
-
{
|
179
|
-
"include": "#constant_rgb_percentage"
|
180
|
-
},
|
181
|
-
{
|
182
|
-
"include": "#constant_important"
|
183
|
-
},
|
184
|
-
{
|
185
|
-
"include": "#constant_unit"
|
186
|
-
},
|
187
|
-
{
|
188
|
-
"include": "#constant_property_value"
|
189
|
-
},
|
190
|
-
{
|
191
|
-
"include": "#constant_number"
|
192
|
-
},
|
193
|
-
{
|
194
|
-
"include": "#constant_font"
|
195
|
-
},
|
196
|
-
{
|
197
|
-
"include": "#constant_color"
|
198
|
-
},
|
199
|
-
{
|
200
|
-
"include": "#constant_depracated_color"
|
201
|
-
}
|
202
|
-
]
|
203
|
-
},
|
204
|
-
"rules": {
|
205
|
-
"patterns": [
|
206
|
-
{
|
207
|
-
"include": "#general"
|
208
|
-
},
|
209
|
-
{
|
210
|
-
"include": "#selectors"
|
211
|
-
},
|
212
|
-
{
|
213
|
-
"name": "meta.property-name.css",
|
214
|
-
"begin": "(?\u003c![-a-z])(?=[-a-z])",
|
215
|
-
"end": "$|(?![-a-z])",
|
216
|
-
"patterns": [
|
217
|
-
{
|
218
|
-
"include": "#property_names"
|
219
|
-
}
|
220
|
-
]
|
221
|
-
},
|
222
|
-
{
|
223
|
-
"name": "meta.property-value.css",
|
224
|
-
"begin": "(:)\\s{0,}(?!(\\s{0,}{))",
|
225
|
-
"end": "\\s*(;|(?=\\}))",
|
226
|
-
"patterns": [
|
227
|
-
{
|
228
|
-
"include": "#general"
|
229
|
-
},
|
230
|
-
{
|
231
|
-
"include": "#property_values"
|
232
|
-
}
|
233
|
-
],
|
234
|
-
"beginCaptures": {
|
235
|
-
"1": {
|
236
|
-
"name": "punctuation.separator.key-value.css"
|
237
|
-
}
|
238
|
-
},
|
239
|
-
"endCaptures": {
|
240
|
-
"1": {
|
241
|
-
"name": "punctuation.terminator.rule.css"
|
242
|
-
}
|
243
|
-
}
|
244
|
-
}
|
245
|
-
]
|
246
|
-
},
|
247
|
-
"selector_attribute": {
|
248
|
-
"name": "meta.attribute-selector.css",
|
249
|
-
"match": "(?i)(\\[)\\s*(-?[_a-z\\\\[[:^ascii:]]][_a-z0-9\\-\\\\[[:^ascii:]]]*)(?:\\s*([~|^$*]?=)\\s*(?:(-?[_a-z\\\\[[:^ascii:]]][_a-z0-9\\-\\\\[[:^ascii:]]]*)|((?\u003e(['\"])(?:[^\\\\]|\\\\.)*?(\\6)))))?\\s*(\\])",
|
250
|
-
"captures": {
|
251
|
-
"1": {
|
252
|
-
"name": "punctuation.definition.entity.css"
|
253
|
-
},
|
254
|
-
"2": {
|
255
|
-
"name": "entity.other.attribute-name.attribute.css"
|
256
|
-
},
|
257
|
-
"3": {
|
258
|
-
"name": "punctuation.separator.operator.css"
|
259
|
-
},
|
260
|
-
"4": {
|
261
|
-
"name": "string.unquoted.attribute-value.css"
|
262
|
-
},
|
263
|
-
"5": {
|
264
|
-
"name": "string.quoted.double.attribute-value.css"
|
265
|
-
},
|
266
|
-
"6": {
|
267
|
-
"name": "punctuation.definition.string.begin.css"
|
268
|
-
},
|
269
|
-
"7": {
|
270
|
-
"name": "punctuation.definition.string.end.css"
|
271
|
-
}
|
272
|
-
}
|
273
|
-
},
|
274
|
-
"selector_class": {
|
275
|
-
"name": "entity.other.attribute-name.class.css",
|
276
|
-
"match": "(\\.)[a-zA-Z0-9_-]+",
|
277
|
-
"captures": {
|
278
|
-
"1": {
|
279
|
-
"name": "punctuation.definition.entity.css"
|
280
|
-
}
|
281
|
-
}
|
282
|
-
},
|
283
|
-
"selector_entities": {
|
284
|
-
"name": "entity.name.tag.css",
|
285
|
-
"match": "\\b(a|abbr|address|area|article|aside|audio|b|base|bdo|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|command|datalist|dd|del|details|dfn|div|dl|dt|em|embed|fieldset|figcaption|figure|footer|form|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|keygen|kbd|label|legend|li|link|map|mark|menu|meta|meter|nav|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|rp|rt|ruby|samp|script|section|select|small|source|span|strong|style|sub|summary|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|ul|var|video)\\b"
|
286
|
-
},
|
287
|
-
"selector_id": {
|
288
|
-
"name": "entity.other.attribute-name.id.css",
|
289
|
-
"match": "(#)[a-zA-Z][a-zA-Z0-9_-]*",
|
290
|
-
"captures": {
|
291
|
-
"1": {
|
292
|
-
"name": "punctuationctuation.definition.entity.css"
|
293
|
-
}
|
294
|
-
}
|
295
|
-
},
|
296
|
-
"selector_pseudo_class": {
|
297
|
-
"name": "entity.other.attribute-name.pseudo-class.css",
|
298
|
-
"match": "(:)\\b(link|visited|hover|active|focus|target|lang|disabled|enabled|checked|indeterminate|root|nth-child()|nth-last-child()|nth-of-type()|nth-last-of-type()|first-child|last-child|first-of-type|last-of-type|only-child|only-of-type|empty|not|valid|invalid)\\b",
|
299
|
-
"captures": {
|
300
|
-
"1": {
|
301
|
-
"name": "punctuation.definition.entity.css"
|
302
|
-
}
|
303
|
-
}
|
304
|
-
},
|
305
|
-
"selector_pseudo_element": {
|
306
|
-
"name": "entity.other.attribute-name.pseudo-element.css",
|
307
|
-
"match": "(:+)\\b(after|before|first-letter|first-line|selection)\\b",
|
308
|
-
"captures": {
|
309
|
-
"1": {
|
310
|
-
"name": "punctuation.definition.entity.css"
|
311
|
-
}
|
312
|
-
}
|
313
|
-
},
|
314
|
-
"selectors": {
|
315
|
-
"patterns": [
|
316
|
-
{
|
317
|
-
"include": "#selector_entities"
|
318
|
-
},
|
319
|
-
{
|
320
|
-
"include": "#selector_class"
|
321
|
-
},
|
322
|
-
{
|
323
|
-
"include": "#selector_id"
|
324
|
-
},
|
325
|
-
{
|
326
|
-
"include": "#selector_pseudo_class"
|
327
|
-
},
|
328
|
-
{
|
329
|
-
"include": "#tag_wildcard"
|
330
|
-
},
|
331
|
-
{
|
332
|
-
"include": "#tag_parent_reference"
|
333
|
-
},
|
334
|
-
{
|
335
|
-
"include": "#selector_pseudo_element"
|
336
|
-
},
|
337
|
-
{
|
338
|
-
"include": "#selector_attribute"
|
339
|
-
}
|
340
|
-
]
|
341
|
-
},
|
342
|
-
"string_double": {
|
343
|
-
"name": "string.quoted.double.css",
|
344
|
-
"begin": "\"",
|
345
|
-
"end": "\"",
|
346
|
-
"patterns": [
|
347
|
-
{
|
348
|
-
"name": "constant.character.escape.css",
|
349
|
-
"match": "\\\\."
|
350
|
-
}
|
351
|
-
],
|
352
|
-
"beginCaptures": {
|
353
|
-
"0": {
|
354
|
-
"name": "punctuation.definition.string.begin.css"
|
355
|
-
}
|
356
|
-
},
|
357
|
-
"endCaptures": {
|
358
|
-
"0": {
|
359
|
-
"name": "punctuation.definition.string.end.css"
|
360
|
-
}
|
361
|
-
}
|
362
|
-
},
|
363
|
-
"string_single": {
|
364
|
-
"name": "string.quoted.single.css",
|
365
|
-
"begin": "'",
|
366
|
-
"end": "'",
|
367
|
-
"patterns": [
|
368
|
-
{
|
369
|
-
"name": "constant.character.escape.css",
|
370
|
-
"match": "\\\\."
|
371
|
-
}
|
372
|
-
],
|
373
|
-
"beginCaptures": {
|
374
|
-
"0": {
|
375
|
-
"name": "punctuation.definition.string.begin.css"
|
376
|
-
}
|
377
|
-
},
|
378
|
-
"endCaptures": {
|
379
|
-
"0": {
|
380
|
-
"name": "punctuation.definition.string.end.css"
|
381
|
-
}
|
382
|
-
}
|
383
|
-
},
|
384
|
-
"tag_parent_reference": {
|
385
|
-
"name": "entity.name.tag.reference.css",
|
386
|
-
"match": "\\\u0026"
|
387
|
-
},
|
388
|
-
"tag_wildcard": {
|
389
|
-
"name": "entity.name.tag.wildcard.css",
|
390
|
-
"match": "\\*"
|
391
|
-
},
|
392
|
-
"variable": {
|
393
|
-
"patterns": [
|
394
|
-
{
|
395
|
-
"include": "#variables"
|
396
|
-
},
|
397
|
-
{
|
398
|
-
"include": "#interpolation"
|
399
|
-
}
|
400
|
-
]
|
401
|
-
},
|
402
|
-
"variable_setting": {
|
403
|
-
"name": "meta.set.variable",
|
404
|
-
"begin": "(var)\\s*([\\w\\-]+)\\s{0,}(=)",
|
405
|
-
"end": ";|(?\u003c=\\})",
|
406
|
-
"patterns": [
|
407
|
-
{
|
408
|
-
"include": "#property_values"
|
409
|
-
},
|
410
|
-
{
|
411
|
-
"include": "#property_list"
|
412
|
-
},
|
413
|
-
{
|
414
|
-
"include": "#variable"
|
415
|
-
},
|
416
|
-
{
|
417
|
-
"include": "#invalid_var_scope"
|
418
|
-
}
|
419
|
-
],
|
420
|
-
"captures": {
|
421
|
-
"1": {
|
422
|
-
"name": "keyword.other.variable.hss.1"
|
423
|
-
},
|
424
|
-
"2": {
|
425
|
-
"name": "variable"
|
426
|
-
},
|
427
|
-
"3": {
|
428
|
-
"name": "punctuation"
|
429
|
-
}
|
430
|
-
}
|
431
|
-
},
|
432
|
-
"variables": {
|
433
|
-
"name": "variable.hss",
|
434
|
-
"match": "(\\s*)(\\$[a-zA-Z0-9_-]+)",
|
435
|
-
"captures": {
|
436
|
-
"1": {
|
437
|
-
"name": "variable.hss"
|
438
|
-
}
|
439
|
-
}
|
440
|
-
}
|
441
|
-
}
|
442
|
-
}
|
data/grammars/source.nmml.json
DELETED
@@ -1,81 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "NME Build File",
|
3
|
-
"scopeName": "source.nmml",
|
4
|
-
"patterns": [
|
5
|
-
{
|
6
|
-
"name": "comment.block.nant",
|
7
|
-
"begin": "\u003c!--",
|
8
|
-
"end": "--\u003e",
|
9
|
-
"captures": {
|
10
|
-
"0": {
|
11
|
-
"name": "punctuation.definition.comment.nant"
|
12
|
-
}
|
13
|
-
}
|
14
|
-
},
|
15
|
-
{
|
16
|
-
"name": "meta.tag.nant",
|
17
|
-
"begin": "(\u003c/?)([-_a-zA-Z0-9:]+)",
|
18
|
-
"end": "(/?\u003e)",
|
19
|
-
"patterns": [
|
20
|
-
{
|
21
|
-
"name": "entity.other.attribute-name.nant",
|
22
|
-
"match": " ([a-zA-Z-]+)"
|
23
|
-
},
|
24
|
-
{
|
25
|
-
"name": "string.quoted.double.nant",
|
26
|
-
"begin": "\"",
|
27
|
-
"end": "\"",
|
28
|
-
"beginCaptures": {
|
29
|
-
"0": {
|
30
|
-
"name": "punctuation.definition.string.begin.nant"
|
31
|
-
}
|
32
|
-
},
|
33
|
-
"endCaptures": {
|
34
|
-
"0": {
|
35
|
-
"name": "punctuation.definition.string.end.nant"
|
36
|
-
}
|
37
|
-
}
|
38
|
-
},
|
39
|
-
{
|
40
|
-
"name": "string.quoted.single.nant",
|
41
|
-
"begin": "'",
|
42
|
-
"end": "'",
|
43
|
-
"beginCaptures": {
|
44
|
-
"0": {
|
45
|
-
"name": "punctuation.definition.string.begin.nant"
|
46
|
-
}
|
47
|
-
},
|
48
|
-
"endCaptures": {
|
49
|
-
"0": {
|
50
|
-
"name": "punctuation.definition.string.end.nant"
|
51
|
-
}
|
52
|
-
}
|
53
|
-
}
|
54
|
-
],
|
55
|
-
"captures": {
|
56
|
-
"1": {
|
57
|
-
"name": "punctuation.definition.tag.nant"
|
58
|
-
},
|
59
|
-
"2": {
|
60
|
-
"name": "entity.name.tag.nant"
|
61
|
-
}
|
62
|
-
}
|
63
|
-
},
|
64
|
-
{
|
65
|
-
"name": "constant.character.entity.nant",
|
66
|
-
"match": "(\u0026)([a-zA-Z]+|#[0-9]+|#x[0-9a-fA-F]+)(;)",
|
67
|
-
"captures": {
|
68
|
-
"1": {
|
69
|
-
"name": "punctuation.definition.constant.nant"
|
70
|
-
},
|
71
|
-
"3": {
|
72
|
-
"name": "punctuation.definition.constant.nant"
|
73
|
-
}
|
74
|
-
}
|
75
|
-
},
|
76
|
-
{
|
77
|
-
"name": "invalid.illegal.bad-ampersand.nant",
|
78
|
-
"match": "\u0026"
|
79
|
-
}
|
80
|
-
]
|
81
|
-
}
|