Skip to content

Commit acda5b3

Browse files
rndnoiseMarcin Szamotulski
authored andcommitted
Perform spell-checking only in strings and comments (#54)
1 parent ece34d9 commit acda5b3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

syntax/purescript.vim

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,14 @@ syn match purescriptTypeAliasStart "^type\s\+\([A-Z]\w*\)" contained
138138

139139
" String
140140
syn match purescriptChar "'[^'\\]'\|'\\.'\|'\\u[0-9a-fA-F]\{4}'"
141-
syn region purescriptString start=+"+ skip=+\\\\\|\\"+ end=+"+
142-
syn region purescriptMultilineString start=+"""+ end=+"""+ fold
141+
syn region purescriptString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=@Spell
142+
syn region purescriptMultilineString start=+"""+ end=+"""+ fold contains=@Spell
143143

144144
" Comment
145-
syn match purescriptLineComment "---*\([^-!#$%&\*\+./<=>\?@\\^|~].*\)\?$"
145+
syn match purescriptLineComment "---*\([^-!#$%&\*\+./<=>\?@\\^|~].*\)\?$" contains=@Spell
146146
syn region purescriptBlockComment start="{-" end="-}" fold
147-
\ contains=purescriptBlockComment
148-
syn cluster purescriptComment contains=purescriptLineComment,purescriptBlockComment
147+
\ contains=purescriptBlockComment,@Spell
148+
syn cluster purescriptComment contains=purescriptLineComment,purescriptBlockComment,@Spell
149149

150150
syn sync minlines=50
151151

0 commit comments

Comments
 (0)