Skip to content

Commit 179f8f7

Browse files
committed
Merge pull request #14 from TooManyBees/attributes
Updates syntax highlighting
2 parents 4aecc2f + 1f5f42a commit 179f8f7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Rust.JSON-tmLanguage

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"match": "\\b(EXIT_FAILURE|EXIT_SUCCESS|RAND_MAX|EOF|SEEK_SET|SEEK_CUR|SEEK_END|_IOFBF|_IONBF|_IOLBF|BUFSIZ|FOPEN_MAX|FILENAME_MAX|L_tmpnam|TMP_MAX|O_RDONLY|O_WRONLY|O_RDWR|O_APPEND|O_CREAT|O_EXCL|O_TRUNC|S_IFIFO|S_IFCHR|S_IFBLK|S_IFDIR|S_IFREG|S_IFMT|S_IEXEC|S_IWRITE|S_IREAD|S_IRWXU|S_IXUSR|S_IWUSR|S_IRUSR|F_OK|R_OK|W_OK|X_OK|STDIN_FILENO|STDOUT_FILENO|STDERR_FILENO)\\b"
6767
},
6868
{"name": "comment.block.attribute.rust",
69-
"begin": "#\\[",
69+
"begin": "#!?\\[",
7070
"end": "\\]",
7171
"patterns": [
7272
{ "name": "string.quoted.double",
@@ -102,7 +102,7 @@
102102
"match": "(=>)|(->)|[-:=*,!.+|%/&~@<>;]"
103103
},
104104
{"name": "support.function.rust",
105-
"match": "_"
105+
"match": "\\b_\\b"
106106
},
107107
{"name": "support.function.rust",
108108
"match": "\\b(\\w+)\\b(?=\\()"

Rust.tmLanguage

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@
166166
</dict>
167167
<dict>
168168
<key>begin</key>
169-
<string>#\[</string>
169+
<string>#!?\[</string>
170170
<key>end</key>
171171
<string>\]</string>
172172
<key>name</key>
@@ -237,7 +237,7 @@
237237
</dict>
238238
<dict>
239239
<key>match</key>
240-
<string>_</string>
240+
<string>\b_\b</string>
241241
<key>name</key>
242242
<string>support.function.rust</string>
243243
</dict>

0 commit comments

Comments
 (0)