Skip to content

Commit 35743c4

Browse files
committed
[shellscript] update grammar
1 parent b47f185 commit 35743c4

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

extensions/shellscript/syntaxes/Shell-Unix-Bash.tmLanguage.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
55
"Once accepted there, we are happy to receive an update request."
66
],
7-
"version": "https://github.com/textmate/shellscript.tmbundle/commit/ba95d7b742caef130911d878f42f66bdd80181e4",
7+
"version": "https://github.com/textmate/shellscript.tmbundle/commit/c23c9e472b681db58d7f982f616144b8a34c5ee4",
88
"fileTypes": [
99
"sh",
1010
"bash",
@@ -848,7 +848,7 @@
848848
"name": "keyword.control.shell"
849849
}
850850
},
851-
"end": "(?<=^|;|&|\\s)(done)(?=\\s|;|&|$)",
851+
"end": "(?<=^|;|&|\\s)(done)(?=\\s|;|&|$|\\))",
852852
"name": "meta.scope.for-loop.shell",
853853
"patterns": [
854854
{
@@ -866,7 +866,7 @@
866866
"name": "variable.other.loop.shell"
867867
}
868868
},
869-
"end": "(?<=^|;|&|\\s)(done)(?=\\s|;|&|$)",
869+
"end": "(?<=^|;|&|\\s)(done)(?=\\s|;|&|$|\\))",
870870
"endCaptures": {
871871
"1": {
872872
"name": "keyword.control.shell"
@@ -886,7 +886,7 @@
886886
"name": "keyword.control.shell"
887887
}
888888
},
889-
"end": "(?<=^|;|&|\\s)(done)(?=\\s|;|&|$)",
889+
"end": "(?<=^|;|&|\\s)(done)(?=\\s|;|&|$|\\))",
890890
"name": "meta.scope.while-loop.shell",
891891
"patterns": [
892892
{
@@ -904,7 +904,7 @@
904904
"name": "variable.other.loop.shell"
905905
}
906906
},
907-
"end": "(?<=^|;|&|\\s)(done)(?=\\s|;|&|$)",
907+
"end": "(?<=^|;|&|\\s)(done)(?=\\s|;|&|$|\\))",
908908
"endCaptures": {
909909
"1": {
910910
"name": "keyword.control.shell"
@@ -924,7 +924,7 @@
924924
"name": "keyword.control.shell"
925925
}
926926
},
927-
"end": "(?<=^|;|&|\\s)(esac)(?=\\s|;|&|$)",
927+
"end": "(?<=^|;|&|\\s)(esac)(?=\\s|;|&|$|\\))",
928928
"name": "meta.scope.case-block.shell",
929929
"patterns": [
930930
{
@@ -934,7 +934,7 @@
934934
"name": "keyword.control.shell"
935935
}
936936
},
937-
"end": "(?<=^|;|&|\\s)(?=(?:esac)(?:\\s|;|&|$))",
937+
"end": "(?<=^|;|&|\\s)(?=(?:esac)(?:\\s|;|&|$|\\)))",
938938
"name": "meta.scope.case-body.shell",
939939
"patterns": [
940940
{
@@ -961,7 +961,7 @@
961961
}
962962
},
963963
"comment": "Restrict match to avoid matching in lines like `dd if=/dev/sda1 …`",
964-
"end": "(?<=^|;|&|\\s)(fi)(?=\\s|;|&|$)",
964+
"end": "(?<=^|;|&|\\s)(fi)(?=\\s|;|&|$|\\))",
965965
"endCaptures": {
966966
"1": {
967967
"name": "keyword.control.shell"

0 commit comments

Comments
 (0)