⬆️ tree-sitter-cli for alias improvements
This commit is contained in:
parent
35f19b1bad
commit
50073cde62
|
@ -22,7 +22,7 @@ module.exports = grammar({
|
|||
|
||||
doctype: $ => seq(
|
||||
'<!',
|
||||
/[Dd][Oo][Cc][Tt][Yy][Pp][Ee]/,
|
||||
alias(/[Dd][Oo][Cc][Tt][Yy][Pp][Ee]/, 'doctype'),
|
||||
/[^>]+/,
|
||||
'>'
|
||||
),
|
||||
|
|
|
@ -13,10 +13,10 @@
|
|||
],
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"nan": "^2.8.0"
|
||||
"nan": "^2.10.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"tree-sitter-cli": "^0.13.1"
|
||||
"tree-sitter-cli": "^0.13.7"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tree-sitter generate && node-gyp build",
|
||||
|
|
|
@ -16,8 +16,13 @@
|
|||
"value": "<!"
|
||||
},
|
||||
{
|
||||
"type": "PATTERN",
|
||||
"value": "[Dd][Oo][Cc][Tt][Yy][Pp][Ee]"
|
||||
"type": "ALIAS",
|
||||
"content": {
|
||||
"type": "PATTERN",
|
||||
"value": "[Dd][Oo][Cc][Tt][Yy][Pp][Ee]"
|
||||
},
|
||||
"named": false,
|
||||
"value": "doctype"
|
||||
},
|
||||
{
|
||||
"type": "PATTERN",
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue