Skip to content

Commit

Permalink
etc: attempts at fixing editor highlighting for new attribute syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
emberian committed Apr 4, 2014
1 parent 2eccb1d commit b6d5daf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/etc/emacs/rust-mode.el
Expand Up @@ -122,7 +122,7 @@
;; but the "else" or "{" should align with the beginning
;; of the expression it's in.)
(looking-at "\\<else\\>\\|{")

(save-excursion
(rust-rewind-irrelevant)
;; Point is now at the end of the previous ine
Expand Down
Expand Up @@ -282,7 +282,7 @@
</context>

<context id="attribute" style-ref="attribute" class="attribute">
<start extended="true">\#\[</start>
<start extended="true">\#!?\[</start>
<end>\]</end>
<include>
<context ref="def:in-comment"/>
Expand Down
1 change: 1 addition & 0 deletions src/etc/kate/rust.xml
Expand Up @@ -202,6 +202,7 @@
<RegExpr String="[0-9][0-9_]*\.[0-9_]*([eE][+-]?[0-9_]+)?(f32|f64|f)?" attribute="Number" context="#stay"/>
<RegExpr String="[0-9][0-9_]*&rustIntSuf;" attribute="Number" context="#stay"/>
<Detect2Chars char="#" char1="[" attribute="Attribute" context="Attribute" beginRegion="Attribute"/>
<Detect2Chars char="#" char1="!" char2="[" attribute="Attribute" context="Attribute" beginRegion="Attribute"/>
<RegExpr String="&rustIdent;::" attribute="Scope"/>
<RegExpr String="&rustIdent;!" attribute="Macro"/>
<RegExpr String="&apos;&rustIdent;(?!&apos;)" attribute="Lifetime"/>
Expand Down

0 comments on commit b6d5daf

Please sign in to comment.