tree-sitter-raml 0.1.0

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/package.json ADDED
@@ -0,0 +1,64 @@
1
+ {
2
+ "name": "tree-sitter-raml",
3
+ "version": "0.1.0",
4
+ "description": "RAML grammar for tree-sitter",
5
+ "main": "bindings/node",
6
+ "types": "bindings/node",
7
+ "scripts": {
8
+ "install": "node-gyp-build",
9
+ "prestart": "npx --yes --package=tree-sitter-cli@v0.27.0 -- tree-sitter build --wasm",
10
+ "start": "npx --yes --package=tree-sitter-cli@v0.27.0 -- tree-sitter playground",
11
+ "test": "node --test bindings/node/*_test.js"
12
+ },
13
+ "author": "M. Reifschneider",
14
+ "license": "MIT",
15
+ "dependencies": {
16
+ "node-addon-api": "^8.9.2",
17
+ "node-gyp-build": "^4.8.0"
18
+ },
19
+ "devDependencies": {
20
+ "node-gyp": "^13.0.2",
21
+ "tree-sitter": "^0.25.0"
22
+ },
23
+ "peerDependencies": {
24
+ "tree-sitter": "^0.25.0"
25
+ },
26
+ "peerDependenciesMeta": {
27
+ "tree-sitter": {
28
+ "optional": true
29
+ }
30
+ },
31
+ "gypfile": true,
32
+ "directories": {
33
+ "test": "test"
34
+ },
35
+ "type": "module",
36
+ "repository": {
37
+ "type": "git",
38
+ "url": "git+https://github.com/meloncholic/tree-sitter-mulesoft.git",
39
+ "directory": "raml"
40
+ },
41
+ "bugs": {
42
+ "url": "https://github.com/meloncholic/tree-sitter-mulesoft/issues"
43
+ },
44
+ "homepage": "https://github.com/meloncholic/tree-sitter-mulesoft#readme",
45
+ "keywords": [
46
+ "parser",
47
+ "raml",
48
+ "yaml",
49
+ "mulesoft",
50
+ "tree-sitter"
51
+ ],
52
+ "files": [
53
+ "grammar.js",
54
+ "binding.gyp",
55
+ "bindings/node/*",
56
+ "queries/*",
57
+ "src/**",
58
+ "NOTICE"
59
+ ],
60
+ "allowScripts": {
61
+ "tree-sitter-cli@0.27.0": true,
62
+ "tree-sitter@0.25.1": true
63
+ }
64
+ }
@@ -0,0 +1,79 @@
1
+ (boolean_scalar) @boolean
2
+
3
+ (null_scalar) @constant.builtin
4
+
5
+ [
6
+ (double_quote_scalar)
7
+ (single_quote_scalar)
8
+ (block_scalar)
9
+ (string_scalar)
10
+ ] @string
11
+
12
+ [
13
+ (integer_scalar)
14
+ (float_scalar)
15
+ ] @number
16
+
17
+ (comment) @comment
18
+
19
+ [
20
+ (anchor_name)
21
+ (alias_name)
22
+ ] @label
23
+
24
+ (tag) @type
25
+
26
+ [
27
+ (yaml_directive)
28
+ (tag_directive)
29
+ (reserved_directive)
30
+ ] @attribute
31
+
32
+ (block_mapping_pair
33
+ key: (flow_node
34
+ [
35
+ (double_quote_scalar)
36
+ (single_quote_scalar)
37
+ ] @property))
38
+
39
+ (block_mapping_pair
40
+ key: (flow_node
41
+ (plain_scalar
42
+ (string_scalar) @property)))
43
+
44
+ (flow_mapping
45
+ (_
46
+ key: (flow_node
47
+ [
48
+ (double_quote_scalar)
49
+ (single_quote_scalar)
50
+ ] @property)))
51
+
52
+ (flow_mapping
53
+ (_
54
+ key: (flow_node
55
+ (plain_scalar
56
+ (string_scalar) @property))))
57
+
58
+ [
59
+ ","
60
+ "-"
61
+ ":"
62
+ ">"
63
+ "?"
64
+ "|"
65
+ ] @punctuation.delimiter
66
+
67
+ [
68
+ "["
69
+ "]"
70
+ "{"
71
+ "}"
72
+ ] @punctuation.bracket
73
+
74
+ [
75
+ "*"
76
+ "&"
77
+ "---"
78
+ "..."
79
+ ] @punctuation.special