-
-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix keywords and operators being kept when parsing a parent node fails (
#630) Co-authored-by: Sijawusz Pur Rahnama <[email protected]>
- Loading branch information
Showing
2 changed files
with
122 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
component Test { | ||
property nextTitle : String = "World" | ||
|
||
/* | ||
Comment that spans | ||
multiple lines | ||
*/ | ||
fun title : String { | ||
nextTitle | ||
} | ||
|
||
fun render { | ||
<div/> | ||
} | ||
} | ||
------------------------------------------------------------------file test.mint | ||
{ | ||
"id": 0, | ||
"method": "initialize", | ||
"params": { | ||
"capabilities": { | ||
"textDocument": { | ||
"semanticTokens": { | ||
"dynamicRegistration": false, | ||
"tokenTypes": ["property"] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
-------------------------------------------------------------------------request | ||
{ | ||
"jsonrpc": "2.0", | ||
"id": 1, | ||
"params": { | ||
"textDocument": { | ||
"uri": "file://#{root_path}/test.mint" | ||
} | ||
}, | ||
"method": "textDocument/semanticTokens/full" | ||
} | ||
-------------------------------------------------------------------------request | ||
{ | ||
"jsonrpc": "2.0", | ||
"result": { | ||
"data": [ | ||
0, | ||
0, | ||
9, | ||
4, | ||
0, | ||
0, | ||
10, | ||
4, | ||
1, | ||
0, | ||
1, | ||
2, | ||
8, | ||
4, | ||
0, | ||
0, | ||
21, | ||
6, | ||
1, | ||
0, | ||
0, | ||
9, | ||
7, | ||
8, | ||
0, | ||
2, | ||
2, | ||
48, | ||
5, | ||
0, | ||
4, | ||
2, | ||
3, | ||
4, | ||
0, | ||
0, | ||
12, | ||
6, | ||
1, | ||
0, | ||
1, | ||
4, | ||
9, | ||
6, | ||
0, | ||
3, | ||
2, | ||
3, | ||
4, | ||
0, | ||
1, | ||
5, | ||
3, | ||
2, | ||
0 | ||
] | ||
}, | ||
"id": 1 | ||
} | ||
------------------------------------------------------------------------response |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters