Skip to content

Commit

Permalink
add EnableEscapeCommandline option
Browse files Browse the repository at this point in the history
  • Loading branch information
sebhoss committed Feb 16, 2023
1 parent 4140cb6 commit e3b26a0
Show file tree
Hide file tree
Showing 7 changed files with 99,067 additions and 96,947 deletions.
7 changes: 7 additions & 0 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ module.exports = grammar({
$.control_path,
$.control_persist,
$.dynamic_forward,
$.enable_escape_commandline,
$.enable_ssh_keysign,
$.escape_char,
$.exit_on_forward_failure,
Expand Down Expand Up @@ -314,6 +315,12 @@ module.exports = grammar({
),
dynamic_forward_value: $ => /\S.*/,

enable_escape_commandline: $ => option(
'EnableEscapeCommandline',
$.enable_escape_commandline_value
),
enable_escape_commandline_value: $ => alias($.boolean, "enable_escape_commandline_value"),

enable_ssh_keysign: $ => option(
'EnableSSHKeysign',
$.enable_ssh_keysign_value
Expand Down
3 changes: 3 additions & 0 deletions queries/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@
(enable_ssh_keysign) @keyword
(enable_ssh_keysign_value) @constant.builtin.boolean

(enable_escape_commandline) @keyword
(enable_escape_commandline_value) @constant.builtin.boolean

(escape_char) @keyword
(escape_char_value) @constant.character.escape

Expand Down
87 changes: 87 additions & 0 deletions src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@
"type": "SYMBOL",
"name": "dynamic_forward"
},
{
"type": "SYMBOL",
"name": "enable_escape_commandline"
},
{
"type": "SYMBOL",
"name": "enable_ssh_keysign"
Expand Down Expand Up @@ -2666,6 +2670,89 @@
"type": "PATTERN",
"value": "\\S.*"
},
"enable_escape_commandline": {
"type": "SEQ",
"members": [
{
"type": "ALIAS",
"content": {
"type": "TOKEN",
"content": {
"type": "PREC",
"value": 1,
"content": {
"type": "PATTERN",
"value": "[eE][nN][aA][bB][lL][eE][eE][sS][cC][aA][pP][eE][cC][oO][mM][mM][aA][nN][dD][lL][iI][nN][eE]"
}
}
},
"named": false,
"value": "EnableEscapeCommandline"
},
{
"type": "CHOICE",
"members": [
{
"type": "PATTERN",
"value": "[ \\t]"
},
{
"type": "STRING",
"value": "="
}
]
},
{
"type": "CHOICE",
"members": [
{
"type": "STRING",
"value": "="
},
{
"type": "BLANK"
}
]
},
{
"type": "CHOICE",
"members": [
{
"type": "STRING",
"value": "\""
},
{
"type": "BLANK"
}
]
},
{
"type": "SYMBOL",
"name": "enable_escape_commandline_value"
},
{
"type": "CHOICE",
"members": [
{
"type": "STRING",
"value": "\""
},
{
"type": "BLANK"
}
]
}
]
},
"enable_escape_commandline_value": {
"type": "ALIAS",
"content": {
"type": "SYMBOL",
"name": "boolean"
},
"named": false,
"value": "enable_escape_commandline_value"
},
"enable_ssh_keysign": {
"type": "SEQ",
"members": [
Expand Down
28 changes: 28 additions & 0 deletions src/node-types.json
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,10 @@
"type": "dynamic_forward",
"named": true
},
{
"type": "enable_escape_commandline",
"named": true
},
{
"type": "enable_ssh_keysign",
"named": true
Expand Down Expand Up @@ -930,6 +934,26 @@
"named": true,
"fields": {}
},
{
"type": "enable_escape_commandline",
"named": true,
"fields": {},
"children": {
"multiple": false,
"required": true,
"types": [
{
"type": "enable_escape_commandline_value",
"named": true
}
]
}
},
{
"type": "enable_escape_commandline_value",
"named": false,
"fields": {}
},
{
"type": "enable_ssh_keysign",
"named": true,
Expand Down Expand Up @@ -2770,6 +2794,10 @@
"type": "DynamicForward",
"named": false
},
{
"type": "EnableEscapeCommandline",
"named": false
},
{
"type": "EnableSSHKeysign",
"named": false
Expand Down
Loading

0 comments on commit e3b26a0

Please sign in to comment.