Skip to content

Commit fb9f759

Browse files
committed
Add support for raw strings. Fixes #9
1 parent 4a90521 commit fb9f759

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

Rust.JSON-tmLanguage

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
{"include": "#rust_escaped_character"}
2222
]
2323
},
24+
{"name": "string.quoted.doube.source.rust",
25+
"begin": "r##\"",
26+
"end": "\"##"
27+
},
2428
{"name": "meta.function.source.rust",
2529
"match": "\\b(fn)\\s+([a-zA-Z_][a-zA-Z0-9_]?[\\w\\:,+ \\'<>]*)\\s*(?:\\()",
2630
"captures": {

Rust.tmLanguage

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
55
<key>fileTypes</key>
@@ -51,6 +51,14 @@
5151
</dict>
5252
</array>
5353
</dict>
54+
<dict>
55+
<key>begin</key>
56+
<string>r##"</string>
57+
<key>end</key>
58+
<string>"##</string>
59+
<key>name</key>
60+
<string>string.quoted.doube.source.rust</string>
61+
</dict>
5462
<dict>
5563
<key>captures</key>
5664
<dict>

0 commit comments

Comments
 (0)