mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-08-29 13:26:26 -04:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8bb28aa111 |
@@ -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"
|
||||
Reference in New Issue
Block a user