From 85e131e0b1cb82515ea2d25fc68cc1ac88e56797 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 7 Feb 2021 18:48:51 -0800 Subject: [PATCH] Added //-style comments --- syntax/nomsu.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/syntax/nomsu.vim b/syntax/nomsu.vim index 222512a..c8df976 100644 --- a/syntax/nomsu.vim +++ b/syntax/nomsu.vim @@ -12,9 +12,9 @@ syn sync minlines=100 "hi def link nomsuInterpDelim PreProc hi nomsuInterpDelim ctermfg=Gray -"syn region nomsuOneLineComment start=/#/ end=/$/ -"hi nomsuOneLineComment ctermfg=DarkBlue -"hi def link nomsuOneLineComment Comment +syn region nomsuLineComment start=;//; end=/$/ +hi nomsuLineComment ctermfg=DarkBlue +hi def link nomsuLineComment Comment syn region nomsuList start=/\[/ end=/\]/ contains=@nomsuAll hi nomsuList ctermfg=Blue @@ -116,7 +116,7 @@ hi def link nomsuComment Comment syn cluster nomsuExpr contains=nomsuParenGroup,nomsuText,nomsuIndentedText,nomsuVar, \nomsuActionVar,nomsuNumber,nomsuDict,nomsuList,nomsuIndentedBlock -syn cluster nomsuAll contains=nomsuParenGroup,nomsuText,nomsuIndentedText,nomsuComment, +syn cluster nomsuAll contains=nomsuParenGroup,nomsuText,nomsuIndentedText,nomsuComment,nomsuLineComment, \ nomsuVar,nomsuActionVar,nomsuNumber,nomsuDict,nomsuList,nomsuIndentedBlock, \ nomsuColon,nomsuSemicolon,nomsuDotDot,nomsuWord,nomsuOpWord,nomsuComma,nomsuIndex