aboutsummaryrefslogtreecommitdiff
path: root/lua/lexers/spin.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lexers/spin.lua')
-rw-r--r--lua/lexers/spin.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/lua/lexers/spin.lua b/lua/lexers/spin.lua
index c906289..51ed0f2 100644
--- a/lua/lexers/spin.lua
+++ b/lua/lexers/spin.lua
@@ -1,4 +1,4 @@
--- Copyright 2017-2022 David B. Lamkins <david@lamkins.net>. See LICENSE.
+-- Copyright 2017-2024 David B. Lamkins <david@lamkins.net>. See LICENSE.
-- Spin LPeg lexer, see https://www.parallax.com/microcontrollers/propeller.
local lexer = require('lexer')
@@ -65,4 +65,6 @@ lex:add_rule('operator', token(lexer.OPERATOR,
'<-' + '<-=' + '->' + '->=' + '><' + '><=' + '&=' + '|=' + 'and=' + 'or=' + '==' + '===' + '<>' +
'<>=' + '<=' + '>=' + '=<' + '=<=' + '=>' + '=>=' + '..' + S('+-/*<>~!&=^|?:.()[]@#\\')))
+lexer.property['scintillua.comment'] = "'"
+
return lex