mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-06 15:10:27 +09:00
UpdateRules: optimize out HasIncludes() usage
This commit is contained in:
@@ -741,10 +741,10 @@ func findRuntimeSyntaxDef(name string, header *highlight.Header) *highlight.Def
|
||||
}
|
||||
|
||||
func resolveIncludes(syndef *highlight.Def) {
|
||||
if !highlight.HasIncludes(syndef) {
|
||||
includes := highlight.GetIncludes(syndef)
|
||||
if len(includes) == 0 {
|
||||
return
|
||||
}
|
||||
includes := highlight.GetIncludes(syndef)
|
||||
|
||||
var files []*highlight.File
|
||||
for _, f := range config.ListRuntimeFiles(config.RTSyntax) {
|
||||
|
||||
Reference in New Issue
Block a user