From 4c4392d29df777ff702dfe99b4f3c23142976e05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Cepl?= Date: Fri, 11 Aug 2023 01:27:32 +0200 Subject: update lexers to orbitalquark/scintillua@b789dde Rather than cherry pick patches from after 6.2 we will just grab everything as is. --- lua/lexers/fish.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lua/lexers/fish.lua') diff --git a/lua/lexers/fish.lua b/lua/lexers/fish.lua index e493e8f..5693322 100644 --- a/lua/lexers/fish.lua +++ b/lua/lexers/fish.lua @@ -1,4 +1,4 @@ --- Copyright 2015-2022 Jason Schindler. See LICENSE. +-- Copyright 2015-2024 Jason Schindler. See LICENSE. -- Fish (http://fishshell.com/) script LPeg lexer. local lexer = require('lexer') @@ -34,8 +34,7 @@ local dq_str = lexer.range('"') lex:add_rule('string', token(lexer.STRING, sq_str + dq_str)) -- Shebang. -lex:add_rule('shebang', token('shebang', lexer.to_eol('#!/'))) -lex:add_style('shebang', lexer.styles.label) +lex:add_rule('shebang', token(lexer.COMMENT, lexer.to_eol('#!/'))) -- Comments. lex:add_rule('comment', token(lexer.COMMENT, lexer.to_eol('#'))) @@ -54,4 +53,6 @@ lex:add_fold_point(lexer.KEYWORD, 'if', 'end') lex:add_fold_point(lexer.KEYWORD, 'switch', 'end') lex:add_fold_point(lexer.KEYWORD, 'while', 'end') +lexer.property['scintillua.comment'] = '#' + return lex -- cgit v1.2.3