Permalink
Browse files

Improve detection of quasiquote punctuation forms

  • Loading branch information...
andrewschleifer committed Feb 14, 2011
1 parent 6e683ca commit 1a39136c484c7b71f5e3484c1289d2e01010d4fc
Showing with 49 additions and 8 deletions.
  1. +49 −8 Syntaxes/Nu.tmLanguage
View
@@ -999,6 +999,33 @@
</dict>
</array>
</dict>
<dict>
<key>name</key>
<string>meta.expression.quasiquote.nu</string>
<key>begin</key>
<string>(\`)\(</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.quasiquote.nu</string>
</dict>
</dict>
<key>end</key>
<string>\)</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#quasiquote-form</string>
</dict>
<dict>
<key>include</key>
<string>$self</string>
</dict>
</array>
</dict>
<dict>
<key>name</key>
<string>meta.expression.nu</string>
@@ -1358,17 +1385,31 @@
<dict>
<key>patterns</key>
<array>
<dict>
<key>name</key>
<string>meta.expression.quasiquote-eval.nu</string>
<key>match</key>
<string>(?&lt;=\A|\s|\(|:)(\,)\w+(?=\Z|\s|\))</string>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.quasiquote-eval.nu</string>
</dict>
</dict>
</dict>
<dict>
<key>name</key>
<string>meta.expression.quasiquote-eval.nu</string>
<key>begin</key>
<string>\(\s*(quasiquote-eval)\s+</string>
<string>(\,)\(</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.other.quasiquote.nu</string>
<string>punctuation.definition.quasiquote-eval.nu</string>
</dict>
</dict>
<key>end</key>
@@ -1389,13 +1430,13 @@
<key>name</key>
<string>meta.expression.quasiquote-eval.nu</string>
<key>begin</key>
<string>(\,)\(</string>
<string>\(\s*(quasiquote-eval)\s+</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.quasiquote-eval.nu</string>
<string>keyword.other.quasiquote.nu</string>
</dict>
</dict>
<key>end</key>
@@ -1416,13 +1457,13 @@
<key>name</key>
<string>meta.expression.quasiquote-splice.nu</string>
<key>begin</key>
<string>\(\s*(quasiquote-splice)\s+</string>
<string>(\,\@)\(</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.other.quasiquote.nu</string>
<string>punctuation.definition.quasiquote-splice.nu</string>
</dict>
</dict>
<key>end</key>
@@ -1443,13 +1484,13 @@
<key>name</key>
<string>meta.expression.quasiquote-splice.nu</string>
<key>begin</key>
<string>(\,\@)\(</string>
<string>\(\s*(quasiquote-splice)\s+</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.quasiquote-splice.nu</string>
<string>keyword.other.quasiquote.nu</string>
</dict>
</dict>
<key>end</key>

0 comments on commit 1a39136

Please sign in to comment.