Permalink
Browse files

Merge pull request #1 from bakkdoor/master

Add support for any dynamic variable identifier, not just stdio related ones.
  • Loading branch information...
2 parents 182aff9 + 351597c commit f6e76619b6ebd8cd0bf3a2aa36bff7f33f32f378 @nuclearsandwich committed Oct 18, 2011
Showing with 3 additions and 1 deletion.
  1. +2 −0 sample.fy
  2. +1 −1 syntax/fancy.vim
View
@@ -188,6 +188,8 @@ class TestVariableSyntaxHighlighting
*stdout*
*stdin*
*stderr*
+ *foo*
+ *bar1_foo_233121*
}
def test_message_send_highlighting {
View
@@ -10,7 +10,7 @@ endif
" Keywords
syn keyword fancyKeyword class def try catch finally retry return return_local
syn keyword fancyKeyword match case
-syn match fancyDynamicVar '\*\(stdin\|stdout\|stderr\)\*'
+syn match fancyDynamicVar '\*[a-zA-Z0-9_-]\+\*'
" use match for `require:` since Vim doesn't like the colon in a keyword.
syn match fancyKeyword /\(require:\|->\|=>\)/
syn match fancyConditional /\(if:\|if_true:\|if_false:\|unless:\|then:\|else:\)/

0 comments on commit f6e7661

Please sign in to comment.