aboutsummaryrefslogtreecommitdiff
path: root/lua/lexers/wsf.lua
diff options
context:
space:
mode:
authormitchell <70453897+orbitalquark@users.noreply.github.com>2025-10-01 12:30:00 +0200
committerMatěj Cepl <mcepl@cepl.eu>2025-11-28 03:10:24 +0100
commitbb94e22d3423fe458de4bc9621379ddebb7fe7e3 (patch)
treee74abacfa6de8945caf62e7ca3a2eddbad378e93 /lua/lexers/wsf.lua
parent2c127cc425d8d01e865440d1fde598df9dc8471d (diff)
downloadvis-bb94e22d3423fe458de4bc9621379ddebb7fe7e3.tar.gz
vis-bb94e22d3423fe458de4bc9621379ddebb7fe7e3.tar.xz
lua/lexers: synchronization with new release scintillua_6.6
Bugfixes: - Fixed Pascal numeric literals. - Fixed folding of HTML/XML comments and XML processing instructions. - Fixed incorrectly highlighting '..' range operators between numbers. Changes: - Added Janet and todo.txt lexers. - Updated Python lexer to recognize t-strings. - Migrated ini and Dart lexers. - Updated org lexer word lists.
Diffstat (limited to 'lua/lexers/wsf.lua')
-rw-r--r--lua/lexers/wsf.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lexers/wsf.lua b/lua/lexers/wsf.lua
index 271082d..899a6f9 100644
--- a/lua/lexers/wsf.lua
+++ b/lua/lexers/wsf.lua
@@ -54,10 +54,10 @@ local general = lex:tag(lexer.CONSTANT .. '.entity', '&' * identifier * ';')
lex:add_rule('entity', predefined + general)
-- Fold points.
+lex:add_fold_point(lexer.COMMENT, '<!--', '-->')
local function disambiguate_lt(text, pos, line, s) return not line:find('^</', s) and 1 or -1 end
lex:add_fold_point(lexer.TAG, '<', disambiguate_lt)
lex:add_fold_point(lexer.TAG, '/>', -1)
-lex:add_fold_point(lexer.COMMENT, '<!--', '-->')
-- Finally, add JavaScript and VBScript as embedded languages