@willbooster/tree-sitter-rust 3.1.4 → 3.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/grammar.js +2 -2
- package/package.json +1 -1
- package/tree-sitter-rust.wasm +0 -0
- package/tree-sitter.json +1 -1
package/grammar.js
CHANGED
|
@@ -120,7 +120,7 @@ const fieldIdentifierKeywords = [...reservedIdentifiers, ...primitiveTypes, 'aut
|
|
|
120
120
|
module.exports = grammar({
|
|
121
121
|
name: 'rust',
|
|
122
122
|
|
|
123
|
-
extras: ($) => [
|
|
123
|
+
extras: ($) => [/[\s\u0085\u200E\u200F\u2028\u2029]/, $.line_comment, $.block_comment],
|
|
124
124
|
|
|
125
125
|
externals: () => [
|
|
126
126
|
sym('string_content'),
|
|
@@ -1668,7 +1668,7 @@ module.exports = grammar({
|
|
|
1668
1668
|
*/
|
|
1669
1669
|
function macroRepetitionSeparator(start, content, end) {
|
|
1670
1670
|
return choice(
|
|
1671
|
-
/[^\s/+*?$"][^/+*?$"]*|\/(?:[^/*+*?$"][^/+*?$"]*)?|\$/,
|
|
1671
|
+
/[^\s\u0085\u200E\u200F\u2028\u2029/+*?$"][^/+*?$"]*|\/(?:[^/*+*?$"][^/+*?$"]*)?|\$/,
|
|
1672
1672
|
/[bc]?"(?:[^"\\]|\\[\s\S])*"/,
|
|
1673
1673
|
/b?'(?:\\(?:[^xu]|u[0-9a-fA-F]{4}|u\{[0-9a-fA-F][0-9a-fA-F_]*\}|x[0-9a-fA-F]{2})|[^\\'])'/,
|
|
1674
1674
|
seq(start, content, end)
|
package/package.json
CHANGED
package/tree-sitter-rust.wasm
CHANGED
|
Binary file
|