Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit ff24dfc

Browse files
committed
Convert to CSON and consolidate snippets/properties
1 parent 39144bc commit ff24dfc

31 files changed

+618
-824
lines changed

grammars/javascript.cson

Lines changed: 429 additions & 0 deletions
Large diffs are not rendered by default.

grammars/javascript.json

Lines changed: 0 additions & 520 deletions
This file was deleted.
Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
'fileTypes': []
2+
'hideFromUser': true
3+
'name': 'Regular Expressions (JavaScript)'
4+
'patterns': [
5+
{
6+
'include': '#regexp'
7+
}
8+
]
9+
'repository':
10+
'regex-character-class':
11+
'patterns': [
12+
{
13+
'match': '\\\\[wWsSdD]|\\.'
14+
'name': 'constant.character.character-class.regexp'
15+
}
16+
{
17+
'match': '\\\\([0-7]{3}|x\\h\\h|u\\h\\h\\h\\h)'
18+
'name': 'constant.character.numeric.regexp'
19+
}
20+
{
21+
'match': '\\\\c[A-Z]'
22+
'name': 'constant.character.control.regexp'
23+
}
24+
{
25+
'match': '\\\\.'
26+
'name': 'constant.character.escape.backslash.regexp'
27+
}
28+
]
29+
'regexp':
30+
'patterns': [
31+
{
32+
'match': '\\\\[bB]|\\^|\\$'
33+
'name': 'keyword.control.anchor.regexp'
34+
}
35+
{
36+
'match': '\\\\[1-9]\\d*'
37+
'name': 'keyword.other.back-reference.regexp'
38+
}
39+
{
40+
'match': '[?+*]|\\{(\\d+,\\d+|\\d+,|,\\d+|\\d+)\\}\\??'
41+
'name': 'keyword.operator.quantifier.regexp'
42+
}
43+
{
44+
'match': '\\|'
45+
'name': 'keyword.operator.or.regexp'
46+
}
47+
{
48+
'begin': '(\\()((\\?=)|(\\?!))'
49+
'beginCaptures':
50+
'1':
51+
'name': 'punctuation.definition.group.regexp'
52+
'3':
53+
'name': 'meta.assertion.look-ahead.regexp'
54+
'4':
55+
'name': 'meta.assertion.negative-look-ahead.regexp'
56+
'end': '(\\))'
57+
'endCaptures':
58+
'1':
59+
'name': 'punctuation.definition.group.regexp'
60+
'name': 'meta.group.assertion.regexp'
61+
'patterns': [
62+
{
63+
'include': '#regexp'
64+
}
65+
]
66+
}
67+
{
68+
'begin': '\\((\\?:)?'
69+
'beginCaptures':
70+
'0':
71+
'name': 'punctuation.definition.group.regexp'
72+
'end': '\\)'
73+
'endCaptures':
74+
'0':
75+
'name': 'punctuation.definition.group.regexp'
76+
'name': 'meta.group.regexp'
77+
'patterns': [
78+
{
79+
'include': '#regexp'
80+
}
81+
]
82+
}
83+
{
84+
'begin': '(\\[)(\\^)?'
85+
'beginCaptures':
86+
'1':
87+
'name': 'punctuation.definition.character-class.regexp'
88+
'2':
89+
'name': 'keyword.operator.negation.regexp'
90+
'end': '(\\])'
91+
'endCaptures':
92+
'1':
93+
'name': 'punctuation.definition.character-class.regexp'
94+
'name': 'constant.other.character-class.set.regexp'
95+
'patterns': [
96+
{
97+
'captures':
98+
'1':
99+
'name': 'constant.character.numeric.regexp'
100+
'2':
101+
'name': 'constant.character.control.regexp'
102+
'3':
103+
'name': 'constant.character.escape.backslash.regexp'
104+
'4':
105+
'name': 'constant.character.numeric.regexp'
106+
'5':
107+
'name': 'constant.character.control.regexp'
108+
'6':
109+
'name': 'constant.character.escape.backslash.regexp'
110+
'match': '(?:.|(\\\\(?:[0-7]{3}|x\\h\\h|u\\h\\h\\h\\h))|(\\\\c[A-Z])|(\\\\.))\\-(?:[^\\]\\\\]|(\\\\(?:[0-7]{3}|x\\h\\h|u\\h\\h\\h\\h))|(\\\\c[A-Z])|(\\\\.))'
111+
'name': 'constant.other.character-class.range.regexp'
112+
}
113+
{
114+
'include': '#regex-character-class'
115+
}
116+
]
117+
}
118+
{
119+
'include': '#regex-character-class'
120+
}
121+
]
122+
'scopeName': 'source.js.regexp'

grammars/regular expressions (javascript).json

Lines changed: 0 additions & 149 deletions
This file was deleted.

scoped-properties/comments.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

scoped-properties/folding.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

scoped-properties/javascript indent.json

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
'.source.js':
2+
'editor':
3+
'commentStart': '// '
4+
'foldEndPattern': '^\\s*\\}|^\\s*\\]|^\\s*\\)'
5+
'increaseIndentPattern': '(?x)\n\t\t(\n\t\t\t\\{ [^}"\']*\n\t\t|\t\\( [^)"\']*\n\t\t|\tcase[\\s\\S]*:\n\t\t|\tdefault:\n\t\t)\n\t\t$\n\t'
6+
'decreaseIndentPattern': '^(.*\\*/)?\\s*(\\}|\\)|case|default)'

snippets/Object Method.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

snippets/Object-key-—-key-value-.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)