@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 CHANGED
@@ -120,7 +120,7 @@ const fieldIdentifierKeywords = [...reservedIdentifiers, ...primitiveTypes, 'aut
120
120
  module.exports = grammar({
121
121
  name: 'rust',
122
122
 
123
- extras: ($) => [/\s/, $.line_comment, $.block_comment],
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-rust",
3
- "version": "3.1.4",
3
+ "version": "3.1.5",
4
4
  "description": "Rust grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
Binary file
package/tree-sitter.json CHANGED
@@ -25,7 +25,7 @@
25
25
  }
26
26
  ],
27
27
  "metadata": {
28
- "version": "3.1.4",
28
+ "version": "3.1.5",
29
29
  "license": "MIT",
30
30
  "description": "Rust grammar for tree-sitter",
31
31
  "authors": [