summaryrefslogtreecommitdiffstats
path: root/syntax/slim.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-08-06 13:22:17 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-08-06 13:22:17 +0200
commit1e533e5982a9c80f262b09fbe94e1ac4555ad915 (patch)
treeed573a3e399a95c2c3baeb6a1371d4753357cecc /syntax/slim.vim
parent56121b4e27cb48efb17be55a969b2f0d725266f8 (diff)
downloadvim-polyglot-1e533e5982a9c80f262b09fbe94e1ac4555ad915.tar.gz
vim-polyglot-1e533e5982a9c80f262b09fbe94e1ac4555ad915.zip
Update
Diffstat (limited to 'syntax/slim.vim')
-rw-r--r--syntax/slim.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/syntax/slim.vim b/syntax/slim.vim
index 0fcedef7..40ad0a1d 100644
--- a/syntax/slim.vim
+++ b/syntax/slim.vim
@@ -43,7 +43,8 @@ syn match slimTag "\w\+[><]*" contained contains=htmlTagName n
syn match slimIdChar "#{\@!" contained nextgroup=slimId
syn match slimId "\%(\w\|-\)\+" contained nextgroup=@slimComponent
syn match slimClassChar "\." contained nextgroup=slimClass
-syn match slimClass "\%(\w\|-\|\/\d+\|:\(\w\|-\)\+\)\+" contained nextgroup=@slimComponent
+syn match slimClass "\%(\w\|-\|\/\|:\(\w\|-\)\+\)\+" contained nextgroup=@slimComponent
+
syn match slimInlineTagChar "\s*:\s*" contained nextgroup=slimTag,slimClassChar,slimIdChar
syn region slimWrappedAttrs matchgroup=slimWrappedAttrsDelimiter start="\s*{\s*" skip="}\s*\"" end="\s*}\s*" contained contains=slimAttr nextgroup=slimRuby