Skip to content

Commit

Permalink
[Lua] Highlight %q format specifier, %l and %w regex character …
Browse files Browse the repository at this point in the history
…classes.
  • Loading branch information
zufuliu committed Aug 31, 2023
1 parent 6296f4a commit 973f26f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scintilla/lexers/LexLua.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ bool IsLongBracket(LexAccessor &styler, Sci_PositionU pos, bool start, int &deli
}

// https://en.cppreference.com/w/c/io/fprintf
// 6.4 – String Manipulation https://www.lua.org/manual/5.4/manual.html#6.4
constexpr bool IsFormatSpecifier(char ch) noexcept {
return AnyOf(ch, 'a', 'A',
'c',
Expand All @@ -92,10 +93,13 @@ constexpr bool IsFormatSpecifier(char ch) noexcept {
'f', 'F',
'g', 'G',
'i',
'l',
'o',
'P',
'q',
's',
'u',
'w',
'x', 'X');
}

Expand Down

0 comments on commit 973f26f

Please sign in to comment.