Skip to content

Commit 2b19dea

Browse files
committed
skip error check for lua?
1 parent c81ac17 commit 2b19dea

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

analyze.go

+8
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,14 @@ func analyze(fname string, stmt *Directive, term string, ctx blockCtx, options *
144144
return nil
145145
}
146146

147+
// Check if the directive is a Lua block
148+
if options.LexOptions.ExternalLexers != nil {
149+
for _, lexer := range options.LexOptions.ExternalLexers {
150+
if _, ok := lexer.(*LuaLexer); ok {
151+
return nil
152+
}
153+
}
154+
}
147155
// do this in reverse because we only throw errors at the end if no masks
148156
// are valid, and typically the first bit mask is what the parser expects
149157
var what string

0 commit comments

Comments
 (0)