Permalink
Browse files

Enhance support for xml-literals.

Recognize attributes in xml literals and allow embedded scala code between brakets.
Recognize namespaces in element names and attribute names.
Recognize strings in attribute values, double or single quoted.
Recognize xml entities such as `&amp` in attribute strings.
  • Loading branch information...
sellmerfud committed May 19, 2012
1 parent cf35527 commit f799d9aea282b61a1229f1cda2db15747ac34411
Showing with 1 addition and 1 deletion.
  1. +1 −1 Syntaxes/Scala.tmLanguage
@@ -381,7 +381,7 @@
<key>match</key>
<string>(?x)
\b(def)\s+
- (`[^`]+`|[_$a-zA-Z][_$a-zA-Z0-9]*(?:_[^\s])(?=[(\t ])|[_$a-zA-Z][_$a-zA-Z0-9]*|[-?~&gt;&lt;^+*%:!#|/@\\]+)</string>
+ (`[^`]+`|[_$a-zA-Z][_$a-zA-Z0-9]*(?:_[^\s])(?=[\t ])|[_$a-zA-Z][_$a-zA-Z0-9]*|[-?~&gt;&lt;^+*%:!#|/@\\]+)</string>
</dict>
<dict>
<key>captures</key>

0 comments on commit f799d9a

Please sign in to comment.