From 8bb28aa1114581dff78500d155cc0a84ea3f0164 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Thu, 19 Jun 2025 14:30:03 -0400 Subject: [PATCH] Use "sh" as shell identifier, rather than "shell" --- lexers/{stxShell.go => stxSh.go} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename lexers/{stxShell.go => stxSh.go} (93%) diff --git a/lexers/stxShell.go b/lexers/stxSh.go similarity index 93% rename from lexers/stxShell.go rename to lexers/stxSh.go index c63115e..01bb831 100644 --- a/lexers/stxShell.go +++ b/lexers/stxSh.go @@ -1,10 +1,10 @@ -//go:build stxShell || stxAll +//go:build stxSh || stxAll package lexers func init() { - syntaxMap["shell"] = &lazySyntax{init: func() []byte { - return []byte(`filetype: shell + syntaxMap["sh"] = &lazySyntax{init: func() []byte { + return []byte(`filetype: sh rules: - constant.number: "\\b[0-9]+\\b" - statement: "\\b(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\\b"