From bb94e22d3423fe458de4bc9621379ddebb7fe7e3 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+orbitalquark@users.noreply.github.com> Date: Wed, 1 Oct 2025 12:30:00 +0200 Subject: 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. --- lua/lexers/python.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lua/lexers/python.lua') diff --git a/lua/lexers/python.lua b/lua/lexers/python.lua index b9bab9a..5cf936e 100644 --- a/lua/lexers/python.lua +++ b/lua/lexers/python.lua @@ -30,10 +30,11 @@ local attr = lex:tag(lexer.ATTRIBUTE, B('.') * lex:word_match(lexer.ATTRIBUTE) + lex:add_rule('constant', builtin_const + attr) -- Strings. +-- Note: https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals local sq_str = lexer.range("'", true) local dq_str = lexer.range('"', true) local tq_str = lexer.range("'''") + lexer.range('"""') -lex:add_rule('string', lex:tag(lexer.STRING, (S('fFrRbBrR') * S('rRfFrRbB') + S('ruRUfFbB'))^-1 * +lex:add_rule('string', lex:tag(lexer.STRING, (S('rRbBfFtT') * S('rRbBfFtT') + S('rRuUbBfFtT'))^-1 * (tq_str + sq_str + dq_str))) -- Identifiers. -- cgit v1.2.3