Skip to content

Commit a553a3f

Browse files
committed
Merge pull request #17 from whitequark/master
Use a lookahead to match type variables more precisely.
2 parents 24e932a + d36f263 commit a553a3f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Rust.JSON-tmLanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"foldingStopMarker": "^\\s*\\}",
66
"patterns": [
77
{"name": "variable.other.source.rust",
8-
"match": "'[a-zA-Z_][a-zA-Z0-9_]*[^\\']"
8+
"match": "'[a-zA-Z_][a-zA-Z0-9_]*(?=[^\'])"
99
},
1010
{"name": "string.quoted.single.source.rust",
1111
"begin": "'",

Rust.tmLanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<array>
1818
<dict>
1919
<key>match</key>
20-
<string>'[a-zA-Z_][a-zA-Z0-9_]*[^\']</string>
20+
<string>'[a-zA-Z_][a-zA-Z0-9_]*(?=[^\'])</string>
2121
<key>name</key>
2222
<string>variable.other.source.rust</string>
2323
</dict>

0 commit comments

Comments
 (0)