Permalink
Browse files

Fixed import statement highlighting.

  • Loading branch information...
travisbrown committed Mar 29, 2013
1 parent 1413c61 commit e6721aa1197d86795fdadcf1a8c321ae919e8f6e
Showing with 2 additions and 11 deletions.
  1. +2 −11 syntax/scala.xml
View
@@ -56,6 +56,7 @@ adapted from "java.xml" by Alfredo Luiz Foltran Fialho (alfoltran@ig.com.br)
<contexts>
<context attribute="Normal Text" lineEndContext="#stay" name="Normal">
<!-- Comment next line if you don't use Javadoc tool -->
+ <RegExpr attribute="Keyword" context="Imports" String="\b(package|import)\b" />
<IncludeRules context="##Javadoc"/>
<keyword attribute="Keyword" context="#stay" String="keywords"/>
<Float attribute="Float" context="#stay">
@@ -82,11 +83,6 @@ adapted from "java.xml" by Alfredo Luiz Foltran Fialho (alfoltran@ig.com.br)
<Detect2Chars attribute="Comment" context="Commentar 2" char="/" char1="*" beginRegion="Comment"/>
<DetectChar attribute="Symbol" context="#stay" char="{" beginRegion="Brace1"/>
<DetectChar attribute="Symbol" context="#stay" char="}" endRegion="Brace1"/>
-<!--
- <RegExpr attribute="Keyword" context="#stay" String="\.{3,3}\s+" />
- <RegExpr attribute="Keyword" context="StaticImports" String="\b(import\s+static)\b" />
- <RegExpr attribute="Keyword" context="Imports" String="\b(package|import)\b" />
--->
<RegExpr attribute="Function" context="#stay" String="\b[_\w][_\w\d]*(?=[\s]*(/\*\s*\d+\s*\*/\s*)?[(])" />
<RegExpr attribute="Symbol" context="Member" String="[.]{1,1}" />
<AnyChar attribute="Symbol" context="#stay" String=":!%&amp;()+,-/.*&lt;=&gt;?[]|~^&#59;"/>
@@ -111,14 +107,9 @@ adapted from "java.xml" by Alfredo Luiz Foltran Fialho (alfoltran@ig.com.br)
<context attribute="Normal Text" lineEndContext="#pop" name="Member" fallthrough="true" fallthroughContext="#pop">
<RegExpr attribute="Function" context="#pop" String="\b[_a-zA-Z]\w*(?=[\s]*)" />
</context>
-<!--
- <context attribute="Normal Text" lineEndContext="#pop" name="StaticImports">
- <RegExpr attribute="StaticImports" context="#pop" String="\s*.*$" />
- </context>
<context attribute="Normal Text" lineEndContext="#pop" name="Imports">
- <RegExpr attribute="Imports" context="#pop" String="\s*.*$" />
+ <DetectChar attribute="String" context="#pop" char=";"/>
</context>
--->
<context attribute="Comment" lineEndContext="#pop" name="Commentar 1"/>
<context attribute="Comment" lineEndContext="#stay" name="Commentar 2">
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/>

0 comments on commit e6721aa

Please sign in to comment.