aboutsummaryrefslogtreecommitdiff
path: root/lua/lexers/icon.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lexers/icon.lua')
-rw-r--r--lua/lexers/icon.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/lua/lexers/icon.lua b/lua/lexers/icon.lua
index b66312c..4881628 100644
--- a/lua/lexers/icon.lua
+++ b/lua/lexers/icon.lua
@@ -1,4 +1,4 @@
--- Copyright 2006-2022 Mitchell. See LICENSE.
+-- Copyright 2006-2024 Mitchell. See LICENSE.
-- LPeg lexer for the Icon programming language.
-- http://www.cs.arizona.edu/icon
-- Contributed by Carl Sturtivant.
@@ -55,6 +55,7 @@ lex:add_rule('operator', token(lexer.OPERATOR, S('+-/*%<>~!=^&|?~@:;,.()[]{}')))
lex:add_fold_point(lexer.PREPROCESSOR, 'ifdef', 'endif')
lex:add_fold_point(lexer.PREPROCESSOR, 'ifndef', 'endif')
lex:add_fold_point(lexer.KEYWORD, 'procedure', 'end')
-lex:add_fold_point(lexer.COMMENT, lexer.fold_consecutive_lines('#'))
+
+lexer.property['scintillua.comment'] = '#'
return lex