Skip to content

Commit 98e003b

Browse files
TextMate bundle: some syntax tweaks.
I was trying to figure out why some files stop highlighting after a while, but couldn't work it out. There seems to be some kind of recursion depth reached in the syntax highlighting, but I'm not sure where.
1 parent 694611a commit 98e003b

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

contrib/Julia.tmbundle/Syntaxes/Julia.tmLanguage

+3-18
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,10 @@
77
<dict>
88
<key>fileTypes</key>
99
<array>
10-
<string>j</string>
1110
<string>jl</string>
12-
<string>jul</string>
13-
<string>julia</string>
1411
</array>
1512
<key>firstLineMatch</key>
16-
<string>^#!/usr/bin/env\s+julia\s*$</string>
13+
<string>^#!.*\bjulia\s*$</string>
1714
<key>foldingStartMarker</key>
1815
<string>^\s*(?:if|while|for|begin|function|macro|module|baremodule|type|immutable|let)\b(?!.*\bend\b).*$</string>
1916
<key>foldingStopMarker</key>
@@ -164,7 +161,7 @@
164161
<array>
165162
<dict>
166163
<key>match</key>
167-
<string>\b(?:function|type|immutable|macro|quote|abstract|bitstype|Base|Main|Core|typealias|module|baremodule|new)\b</string>
164+
<string>\b(?:function|type|immutable|macro|quote|abstract|bitstype|typealias|module|baremodule|new)\b</string>
168165
<key>name</key>
169166
<string>keyword.other.julia</string>
170167
</dict>
@@ -186,12 +183,6 @@
186183
<key>name</key>
187184
<string>variable.macro.julia</string>
188185
</dict>
189-
<dict>
190-
<key>match</key>
191-
<string>\b(true|false|nothing|NA)\b</string>
192-
<key>name</key>
193-
<string>constant.language.julia</string>
194-
</dict>
195186
</array>
196187
</dict>
197188
<key>number</key>
@@ -200,7 +191,7 @@
200191
<array>
201192
<dict>
202193
<key>match</key>
203-
<string>((\b0(x|X)[0-9a-fA-F]*)|((\b[0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]*)?(im)?|\bInf(32)?\b|\bNaN(32)?\b|\be\b|\bpi\b)</string>
194+
<string>((\b0(x|X)[0-9a-fA-F]*)|((\b[0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]*)?(im)?|\bInf(32)?\b|\bNaN(32)?\b|\btrue\b|\bfalse\b)</string>
204195
<key>name</key>
205196
<string>constant.numeric.julia</string>
206197
</dict>
@@ -532,12 +523,6 @@
532523
<key>name</key>
533524
<string>meta.type.julia</string>
534525
</dict>
535-
<dict>
536-
<key>match</key>
537-
<string>\b(Int8|Int16|Int32|Int64|Int128|Uint8|Uint16|Uint32|Uint64|Uint128|Float32|Float64|Bool|Char|Int|Uint|Void|Any)\b</string>
538-
<key>name</key>
539-
<string>support.other.bit-types.julia</string>
540-
</dict>
541526
<dict>
542527
<key>captures</key>
543528
<dict>

0 commit comments

Comments
 (0)