mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-08-30 05:46:28 -04:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8bb28aa111 |
@@ -1,10 +1,10 @@
|
|||||||
//go:build stxShell || stxAll
|
//go:build stxSh || stxAll
|
||||||
|
|
||||||
package lexers
|
package lexers
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
syntaxMap["shell"] = &lazySyntax{init: func() []byte {
|
syntaxMap["sh"] = &lazySyntax{init: func() []byte {
|
||||||
return []byte(`filetype: shell
|
return []byte(`filetype: sh
|
||||||
rules:
|
rules:
|
||||||
- constant.number: "\\b[0-9]+\\b"
|
- 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"
|
- 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