Skip to content

Commit 1e7c2a8

Browse files
authored
Merge pull request stadelmanma#141 from stadelmanma/fix-string-literal-continuation
Fix string literals immediately followed by line continuation
2 parents c687ba7 + 0cbfc85 commit 1e7c2a8

File tree

7 files changed

+5482
-5441
lines changed

7 files changed

+5482
-5441
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ tree-sitter-language = "0.1.0"
2121
cc = "1.0"
2222

2323
[dev-dependencies]
24-
tree-sitter = "0.24"
24+
tree-sitter = "0.25"

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@
5050
"eslint-plugin-node": "^11.1.0",
5151
"eslint-plugin-promise": "^4.2.1",
5252
"prebuildify": "^6.0.0",
53-
"tree-sitter-cli": "^0.24.7"
53+
"tree-sitter-cli": "^0.25.4"
5454
},
5555
"peerDependencies": {
56-
"tree-sitter": "^0.22.4"
56+
"tree-sitter": "^0.25.4"
5757
},
5858
"peerDependenciesMeta": {
5959
"tree_sitter": {

src/grammar.json

Lines changed: 38 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -7949,21 +7949,26 @@
79497949
"type": "SEQ",
79507950
"members": [
79517951
{
7952-
"type": "ALIAS",
7953-
"content": {
7954-
"type": "CHOICE",
7955-
"members": [
7956-
{
7957-
"type": "SEQ",
7958-
"members": [
7959-
{
7952+
"type": "CHOICE",
7953+
"members": [
7954+
{
7955+
"type": "SEQ",
7956+
"members": [
7957+
{
7958+
"type": "ALIAS",
7959+
"content": {
79607960
"type": "PATTERN",
79617961
"value": "[eE][nN][dD]"
79627962
},
7963-
{
7964-
"type": "CHOICE",
7965-
"members": [
7966-
{
7963+
"named": false,
7964+
"value": "end"
7965+
},
7966+
{
7967+
"type": "CHOICE",
7968+
"members": [
7969+
{
7970+
"type": "ALIAS",
7971+
"content": {
79677972
"type": "CHOICE",
79687973
"members": [
79697974
{
@@ -7985,21 +7990,26 @@
79857990
}
79867991
]
79877992
},
7988-
{
7989-
"type": "BLANK"
7990-
}
7991-
]
7992-
}
7993-
]
7994-
},
7995-
{
7993+
"named": false,
7994+
"value": "blockdata"
7995+
},
7996+
{
7997+
"type": "BLANK"
7998+
}
7999+
]
8000+
}
8001+
]
8002+
},
8003+
{
8004+
"type": "ALIAS",
8005+
"content": {
79968006
"type": "PATTERN",
79978007
"value": "[eE][nN][dD][[oO][bB][jJ][eE][cC][tT] O[bB][jJ][eE][cC][tT]]"
7998-
}
7999-
]
8000-
},
8001-
"named": false,
8002-
"value": "end[object Object]"
8008+
},
8009+
"named": false,
8010+
"value": "endblockdata"
8011+
}
8012+
]
80038013
},
80048014
{
80058015
"type": "CHOICE",
@@ -21248,5 +21258,6 @@
2124821258
"_top_level_item",
2124921259
"_statement"
2125021260
],
21251-
"supertypes": []
21252-
}
21261+
"supertypes": [],
21262+
"reserved": {}
21263+
}

src/node-types.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13676,7 +13676,8 @@
1367613676
},
1367713677
{
1367813678
"type": "&",
13679-
"named": false
13679+
"named": false,
13680+
"extra": true
1368013681
},
1368113682
{
1368213683
"type": "&&",
@@ -13972,7 +13973,8 @@
1397213973
},
1397313974
{
1397413975
"type": "comment",
13975-
"named": true
13976+
"named": true,
13977+
"extra": true
1397613978
},
1397713979
{
1397813980
"type": "common",
@@ -14071,15 +14073,15 @@
1407114073
"named": false
1407214074
},
1407314075
{
14074-
"type": "end[object Object]",
14076+
"type": "endassociate",
1407514077
"named": false
1407614078
},
1407714079
{
14078-
"type": "endassociate",
14080+
"type": "endblock",
1407914081
"named": false
1408014082
},
1408114083
{
14082-
"type": "endblock",
14084+
"type": "endblockdata",
1408314085
"named": false
1408414086
},
1408514087
{

0 commit comments

Comments
 (0)