summaryrefslogtreecommitdiff
path: root/languages.toml
diff options
context:
space:
mode:
authorMichael Davis2022-12-20 15:27:51 +0000
committerBlaž Hrastnik2023-03-14 01:56:49 +0000
commitcdd6c8d91e7b29e9587babce5919af800400f28d (patch)
treeb4a6ca81cdd7884e65f7cfd5029dd545c21511e4 /languages.toml
parentbb41a283e61e4d6ec7b13909771d0a9e5a759a15 (diff)
Update Erlang highlights
* Macros that start with underscore were incorrectly marked as 'comment.unused' rather than 'keyword.directive' due to an ordering issue of those two patterns. * Recognize escripts as Erlang by the shebang.
Diffstat (limited to 'languages.toml')
-rw-r--r--languages.toml1
1 files changed, 1 insertions, 0 deletions
diff --git a/languages.toml b/languages.toml
index 83a09b0b..2e6f5f95 100644
--- a/languages.toml
+++ b/languages.toml
@@ -1317,6 +1317,7 @@ scope = "source.erlang"
injection-regex = "erl(ang)?"
file-types = ["erl", "hrl", "app", "rebar.config", "rebar.lock"]
roots = ["rebar.config"]
+shebangs = ["escript"]
comment-token = "%%"
indent = { tab-width = 4, unit = " " }
language-server = { command = "erlang_ls" }