mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-09-02 07:07:15 -04:00
Remove what remains of filetype auto-detection
This commit is contained in:
@@ -5,11 +5,6 @@ package syntax
|
||||
func init() {
|
||||
syntaxMap["js"] = &lazySyntax{init: func() []byte {
|
||||
return []byte(`filetype: javascript
|
||||
|
||||
detect:
|
||||
filename: "\\.js$"
|
||||
header: "^(import|require|const|<script\\s+src=(\"|').*js(\"|'))"
|
||||
|
||||
rules:
|
||||
- type: "(<(/)?[a-zA-Z:]+>)"
|
||||
- type: "(<(/)?[a-zA-Z:]+[[:space:]]+)"
|
||||
|
||||
Reference in New Issue
Block a user