Skip to content

Commit

Permalink
Minor grammar updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ghedwards committed Sep 9, 2024
1 parent 5b48538 commit a131477
Show file tree
Hide file tree
Showing 14 changed files with 329,450 additions and 301,459 deletions.
4 changes: 2 additions & 2 deletions cfhtml/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"main": "../bindings/node/cfhtml.js",
"tree-sitter": [
"main": "../bindings/node/cfhtml.js",
"tree-sitter": [
{
"scope": "source.cfhtml",
"file-types": [
Expand Down
3 changes: 3 additions & 0 deletions cfhtml/queries/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@
[
(this)
(super)
(args)
(request)
(server)
] @variable.builtin

((identifier) @variable.builtin
Expand Down
88 changes: 88 additions & 0 deletions cfhtml/src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -5552,6 +5552,38 @@
"type": "SYMBOL",
"name": "this"
},
{
"type": "SYMBOL",
"name": "args"
},
{
"type": "SYMBOL",
"name": "request"
},
{
"type": "SYMBOL",
"name": "variables"
},
{
"type": "SYMBOL",
"name": "form"
},
{
"type": "SYMBOL",
"name": "url"
},
{
"type": "SYMBOL",
"name": "server"
},
{
"type": "SYMBOL",
"name": "session"
},
{
"type": "SYMBOL",
"name": "application"
},
{
"type": "SYMBOL",
"name": "super"
Expand Down Expand Up @@ -9766,6 +9798,62 @@
"type": "STRING",
"value": "super"
},
"args": {
"type": "TOKEN",
"content": {
"type": "STRING",
"value": "arguments"
}
},
"request": {
"type": "TOKEN",
"content": {
"type": "STRING",
"value": "request"
}
},
"variables": {
"type": "TOKEN",
"content": {
"type": "STRING",
"value": "variables"
}
},
"form": {
"type": "TOKEN",
"content": {
"type": "STRING",
"value": "form"
}
},
"url": {
"type": "TOKEN",
"content": {
"type": "STRING",
"value": "url"
}
},
"server": {
"type": "TOKEN",
"content": {
"type": "STRING",
"value": "server"
}
},
"session": {
"type": "TOKEN",
"content": {
"type": "STRING",
"value": "session"
}
},
"application": {
"type": "TOKEN",
"content": {
"type": "STRING",
"value": "application"
}
},
"true": {
"type": "TOKEN",
"content": {
Expand Down
64 changes: 64 additions & 0 deletions cfhtml/src/node-types.json
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,14 @@
"type": "primary_expression",
"named": true,
"subtypes": [
{
"type": "application",
"named": true
},
{
"type": "args",
"named": true
},
{
"type": "array",
"named": true
Expand All @@ -263,6 +271,10 @@
"type": "false",
"named": true
},
{
"type": "form",
"named": true
},
{
"type": "function_expression",
"named": true
Expand Down Expand Up @@ -303,6 +315,18 @@
"type": "regex",
"named": true
},
{
"type": "request",
"named": true
},
{
"type": "server",
"named": true
},
{
"type": "session",
"named": true
},
{
"type": "string",
"named": true
Expand All @@ -322,6 +346,14 @@
{
"type": "true",
"named": true
},
{
"type": "url",
"named": true
},
{
"type": "variables",
"named": true
}
]
},
Expand Down Expand Up @@ -5113,6 +5145,14 @@
"type": "access_type",
"named": true
},
{
"type": "application",
"named": true
},
{
"type": "args",
"named": true
},
{
"type": "argument",
"named": false
Expand Down Expand Up @@ -5233,6 +5273,10 @@
"type": "for",
"named": false
},
{
"type": "form",
"named": true
},
{
"type": "from",
"named": false
Expand Down Expand Up @@ -5365,6 +5409,10 @@
"type": "regex_pattern",
"named": true
},
{
"type": "request",
"named": true
},
{
"type": "required",
"named": true
Expand All @@ -5385,6 +5433,14 @@
"type": "script",
"named": false
},
{
"type": "server",
"named": true
},
{
"type": "session",
"named": true
},
{
"type": "set",
"named": false
Expand Down Expand Up @@ -5473,10 +5529,18 @@
"type": "type",
"named": true
},
{
"type": "url",
"named": true
},
{
"type": "var",
"named": false
},
{
"type": "variables",
"named": true
},
{
"type": "wddx",
"named": false
Expand Down
Loading

0 comments on commit a131477

Please sign in to comment.