tree-sitter-beancount 2.5.0 → 2.5.1

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
@@ -97,7 +97,7 @@ module.exports = grammar({
97
97
  ),
98
98
  ),
99
99
  ),
100
- currency: $ => token(/[A-Z]([A-Z0-9\'\._\-]{0,22}[A-Z0-9])?/),
100
+ currency: $ => token(/[A-Z][A-Z0-9\'\._\-]*[A-Z0-9]?/),
101
101
  string: $ => token(/"([^"]|\\")*"/),
102
102
  unquoted_string: $ => token(prec(-1, /[^\r\n]+/)),
103
103
  number: $ => token(/([0-9]+|[0-9][0-9,]+[0-9])(\.[0-9]*)?/),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tree-sitter-beancount",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "description": "a tree-sitter parser for the beancount syntax",
5
5
  "main": "bindings/node",
6
6
  "types": "bindings/node",
@@ -33,9 +33,9 @@
33
33
  },
34
34
  "homepage": "https://github.com/bryall/tree-sitter-beancount#readme",
35
35
  "dependencies": {
36
- "node-addon-api": "^8.5.0",
36
+ "node-addon-api": "^8.6.0",
37
37
  "node-gyp-build": "^4.8.0",
38
- "tar-fs": "^3.1.1"
38
+ "tar-fs": "^3.1.2"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "tree-sitter": "^0.25.0"
@@ -47,7 +47,7 @@
47
47
  },
48
48
  "devDependencies": {
49
49
  "prebuildify": "^6.0.0",
50
- "tree-sitter-cli": "^0.26.3"
50
+ "tree-sitter-cli": "^0.26.5"
51
51
  },
52
52
  "engines": {
53
53
  "node": ">=22.0.0"
package/src/grammar.json CHANGED
@@ -253,7 +253,7 @@
253
253
  "type": "TOKEN",
254
254
  "content": {
255
255
  "type": "PATTERN",
256
- "value": "[A-Z]([A-Z0-9\\'\\._\\-]{0,22}[A-Z0-9])?"
256
+ "value": "[A-Z][A-Z0-9\\'\\._\\-]*[A-Z0-9]?"
257
257
  }
258
258
  },
259
259
  "string": {