diff options
Diffstat (limited to 'lexers/LexLua.cxx')
-rw-r--r-- | lexers/LexLua.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lexers/LexLua.cxx b/lexers/LexLua.cxx index 1e115ad18..1086b40e8 100644 --- a/lexers/LexLua.cxx +++ b/lexers/LexLua.cxx @@ -89,8 +89,8 @@ static void ColouriseLuaDoc( } StyleContext sc(startPos, length, initStyle, styler); - if (startPos == 0 && sc.ch == '#') { - // shbang line: # is a comment only if first char of the script + if (startPos == 0 && sc.ch == '#' && sc.chNext == '!') { + // shbang line: "#!" is a comment only if located at the start of the script sc.SetState(SCE_LUA_COMMENTLINE); } for (; sc.More(); sc.Forward()) { |