From 0899e9c32f42f41287ac1c106d16dd7f37dbcf45 Mon Sep 17 00:00:00 2001 From: steven nguyen <58114641+icecream17@users.noreply.github.com> Date: Sat, 6 Feb 2021 10:41:06 -0600 Subject: [PATCH 1/3] Use empty_statement A very unimportant pull request huh. --- src/grammar.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/grammar.json b/src/grammar.json index d4cf0755..c949cf00 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -5521,8 +5521,8 @@ "type": "CHOICE", "members": [ { - "type": "STRING", - "value": ";" + "type": "SYMBOL", + "name": "empty_statement" }, { "type": "BLANK" From 90947d9118fb4d0bbeeee23a5bb0864c5218c60a Mon Sep 17 00:00:00 2001 From: steven nguyen <58114641+icecream17@users.noreply.github.com> Date: Sat, 6 Feb 2021 11:19:10 -0600 Subject: [PATCH 2/3] Add optional chaining to delimiters It's in the same category as the regular . --- queries/highlights.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/queries/highlights.scm b/queries/highlights.scm index 23623a62..29f3f6cc 100644 --- a/queries/highlights.scm +++ b/queries/highlights.scm @@ -110,6 +110,7 @@ [ ";" + "?." "." "," ] @punctuation.delimiter From 3f3a931cb0cc57bbc15e5d83f40808940f933176 Mon Sep 17 00:00:00 2001 From: steven nguyen <58114641+icecream17@users.noreply.github.com> Date: Sat, 6 Feb 2021 11:21:44 -0600 Subject: [PATCH 3/3] This pr is only about optional chaining --- src/grammar.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/grammar.json b/src/grammar.json index c949cf00..d4cf0755 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -5521,8 +5521,8 @@ "type": "CHOICE", "members": [ { - "type": "SYMBOL", - "name": "empty_statement" + "type": "STRING", + "value": ";" }, { "type": "BLANK"