mirror of
https://github.com/zyedidia/micro.git
synced 2025-06-18 23:05:40 -04:00
buffer: Don't process the default syntax in the user's custom file lookup
It needs to be processed earliest in the moment no match could be determined.
This commit is contained in:
parent
6ffabd626f
commit
87ee41ab27
@ -710,6 +710,10 @@ func (b *Buffer) UpdateRules() {
|
|||||||
var header *highlight.Header
|
var header *highlight.Header
|
||||||
// search for the syntax file in the user's custom syntax files
|
// search for the syntax file in the user's custom syntax files
|
||||||
for _, f := range config.ListRealRuntimeFiles(config.RTSyntax) {
|
for _, f := range config.ListRealRuntimeFiles(config.RTSyntax) {
|
||||||
|
if f.Name() == "default" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
data, err := f.Data()
|
data, err := f.Data()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
screen.TermMessage("Error loading syntax file " + f.Name() + ": " + err.Error())
|
screen.TermMessage("Error loading syntax file " + f.Name() + ": " + err.Error())
|
||||||
|
Loading…
Reference in New Issue
Block a user