Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Enhance xml-literals #53

Merged
merged 2 commits into from

2 participants

@sellmerfud

Improve xml-literal processing to recognize namespaces, attributes and xml entities.
Also allow embedded scala code when specifying values for xml attributes.

Also includes a fix for var and val declarations with tuple pattern matching.

sellmerfud added some commits
@sellmerfud sellmerfud 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.
f799d9a
@sellmerfud sellmerfud Fix problem with var|val declarations with tuples.
For example  `var (a, b) = ...`
5109447
@mads379 mads379 merged commit e452dcd into mads379:master
@mads379
Owner

Thanks! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 19, 2012
  1. @sellmerfud

    Enhance support for xml-literals.

    sellmerfud authored
    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.
  2. @sellmerfud

    Fix problem with var|val declarations with tuples.

    sellmerfud authored
    For example  `var (a, b) = ...`
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  Syntaxes/Scala.tmLanguage
View
2  Syntaxes/Scala.tmLanguage
@@ -442,7 +442,7 @@
</dict>
</dict>
<key>match</key>
- <string>\b(?:(val)|(var))\s+(`[^`]+`|[_$a-zA-Z][_$a-zA-Z0-9]*(?:_[^\s])(?=[\t ])|[_$a-zA-Z][_$a-zA-Z0-9]*|[-?~&gt;&lt;^+*%:!#|/@\\]+)</string>
+ <string>\b(?:(val)|(var))\s+(?:(`[^`]+`|[_$a-zA-Z][_$a-zA-Z0-9]*(?:_[^\s])(?=[\t ])|[_$a-zA-Z][_$a-zA-Z0-9]*|[-?~&gt;&lt;^+*%:!#|/@\\]+)|(?=\())</string>
</dict>
<dict>
<key>captures</key>
Something went wrong with that request. Please try again.