aboutsummaryrefslogtreecommitdiff
path: root/lua/lexers/rc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lexers/rc.lua')
-rw-r--r--lua/lexers/rc.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/lua/lexers/rc.lua b/lua/lexers/rc.lua
index 7fb0ade..2e1cfd0 100644
--- a/lua/lexers/rc.lua
+++ b/lua/lexers/rc.lua
@@ -1,4 +1,4 @@
--- Copyright 2017-2022 Michael Forney. See LICENSE.
+-- Copyright 2017-2024 Michael Forney. See LICENSE.
-- rc LPeg lexer.
local lexer = require('lexer')
@@ -46,6 +46,7 @@ lex:add_rule('operator', token(lexer.OPERATOR, S('@`=!<>*&^|;?()[]{}') + '\\\n')
-- Fold points.
lex:add_fold_point(lexer.OPERATOR, '{', '}')
-lex:add_fold_point(lexer.COMMENT, lexer.fold_consecutive_lines('#'))
+
+lexer.property['scintillua.comment'] = '#'
return lex