Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix #9 again

  • Loading branch information...
commit 14e001ce47d8f5ea098e487e33817f95b637491a 1 parent 0d191d7
@kchmck kchmck authored
Showing with 6 additions and 1 deletion.
  1. +1 −1  syntax/coffee.vim
  2. +5 −0 test/test-ops.coffee
View
2  syntax/coffee.vim
@@ -47,7 +47,7 @@ hi def link coffeeOperator Operator
" The first case matches symbol operators only if they have an operand before.
syn match coffeeExtendedOp /\%(\S\s*\)\@<=[+\-*/%&|\^=!<>?.]\+\|[-=]>\|--\|++\|::/
\ display
-syn match coffeeExtendedOp /\%(and\|or\)=/ display
+syn match coffeeExtendedOp /\<\%(and\|or\)=/ display
hi def link coffeeExtendedOp coffeeOperator
" This is separate from `coffeeExtendedOp` to help differentiate commas from
View
5 test/test-ops.coffee
@@ -17,7 +17,9 @@ abc << def
abc >>> def
abc ? def
abc && def
+abc and def
abc || def
+abc or def
abc += def
abc -= def
@@ -73,6 +75,9 @@ abc =
42: 123
# Operators shouldn't be highlighted
+vector=
+wand=
+
abc+++
abc---
abc ** def
Please sign in to comment.
Something went wrong with that request. Please try again.