Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit 7b939db

Browse files
committed
change logn grammar rules to multiline to maintain
1 parent 0e5a2ef commit 7b939db

File tree

1 file changed

+56
-3
lines changed

1 file changed

+56
-3
lines changed

‎grammars/angularjs.cson

+56-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,20 @@
2323
'name': 'meta.tag.block.any.html'
2424
}
2525
{
26-
'begin': '(</?)((?i:address|blockquote|dd|div|section|article|aside|header|footer|nav|menu|dl|dt|fieldset|form|frame|frameset|h1|h2|h3|h4|h5|h6|iframe|noframes|object|ol|p|ul|applet|center|dir|hr|pre)\\b)'
26+
'begin': '''
27+
(</?)((?i:
28+
address|article|aside|applet|
29+
blockquote|center|
30+
dir|div|dl|dt|dd|
31+
fieldset|footer|form|frame|frameset|
32+
header|hr|h1|h2|h3|h4|h5|h6|
33+
iframe|
34+
menu|nav|noframes|
35+
object|ol|
36+
p|pre|
37+
section|ul
38+
)\\b)
39+
'''
2740
'beginCaptures':
2841
'1':
2942
'name': 'punctuation.definition.tag.begin.html'
@@ -40,7 +53,26 @@
4053
]
4154
}
4255
{
43-
'begin': '(</?)((?i:a|abbr|acronym|area|b|base|basefont|bdo|big|body|br|button|caption|cite|code|col|colgroup|del|dfn|em|font|head|html|i|img|input|ins|isindex|kbd|label|legend|li|link|map|meta|noscript|optgroup|option|param|q|s|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|var)\\b)'
56+
'begin': '''
57+
(</?)((?i:
58+
a|abbr|acronym|area|
59+
b|base|basefont|bdo|big|body|br|button|
60+
caption|cite|code|col|colgroup|
61+
del|dfn|
62+
em|font|
63+
head|html|
64+
i|img|input|ins|isindex|
65+
kbd|
66+
label|legend|li|link|
67+
map|meta|
68+
noscript|
69+
optgroup|option|
70+
param|q|
71+
s|samp|script|select|small|span|strike|strong|style|sub|sup|
72+
table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|
73+
u|var
74+
)\\b)
75+
'''
4476
'beginCaptures':
4577
'1':
4678
'name': 'punctuation.definition.tag.begin.html'
@@ -74,7 +106,28 @@
74106
{ 'include': 'source.js' }
75107
]
76108
'angular-directive-attribute':
77-
'begin': '\\b((?i:ng-(app|strict-di|bind|bind-html|bind-template|blur|change|checked|class|class-even|class-odd|click|cloak|controller|copy|csp|cut|dblclick|disabled|focus|form|hide|href|if|include|init|keydown|keypress|keyup|list|model|model-options|mousedown|mouseenter|mouseleave|mousemove|mouseover|mouseup|non-bindable|open|paste|pluralize|readonly|repeat|repeat-start|repeat-end|selected|show|src|srcset|style|submit|switch|switch-when|switch-default|transclude|value|swipe-left|swipe-right|view|messages|message|animate-children)))\\b\\s*(=?)'
109+
'begin': '''
110+
\\b((?i:ng-(
111+
animate-children|app|
112+
bind|bind-html|bind-template|blur|
113+
change|checked|class|class-even|class-odd|click|cloak|controller|copy|csp|cut|
114+
dblclick|disabled|
115+
focus|form|
116+
hide|href|
117+
if|include|init|
118+
keydown|keypress|keyup|
119+
list|
120+
messages|message|model|model-options|mousedown|mouseenter|mouseleave|mousemove|mouseover|mouseup|
121+
non-bindable|
122+
open|
123+
paste|pluralize|
124+
readonly|repeat|repeat-start|repeat-end|
125+
selected|show|src|srcset|style|strict-di|submit|switch|switch-when|switch-default|
126+
transclude|
127+
value|
128+
swipe-left|swipe-right|view|
129+
)))\\b\\s*(=?)
130+
'''
78131
'beginCaptures':
79132
'1':
80133
'name': 'entity.other.attribute-name.html.angular'

0 commit comments

Comments
 (0)