Skip to content

Commit

Permalink
Gedit/GTKSourceView: Add macro syntax highlighting.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsproul committed Aug 4, 2014
1 parent d34e011 commit 806e4f0
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<style id="number" _name="Number" map-to="def:number"/>
<style id="scope" _name="Scope" map-to="def:preprocessor"/>
<style id="attribute" _name="Attribute" map-to="def:preprocessor"/>
<style id="macro" _name="Macro" map-to="def:preprocessor"/>
</styles>

<definitions>
Expand Down Expand Up @@ -251,6 +252,12 @@
</match>
</context>

<context id="macro" style-ref="macro">
<match extended="true">
\%{ident}!
</match>
</context>

<context id="lifetime" style-ref="keyword">
<match extended="true">
'\%{ident}
Expand Down Expand Up @@ -308,6 +315,7 @@
<context ref="types"/>
<context ref="ctypes"/>
<context ref="self"/>
<context ref="macro"/>
<context ref="constants"/>
<context ref="cconstants"/>
<context ref="line-comment"/>
Expand Down

5 comments on commit 806e4f0

@bors
Copy link
Contributor

@bors bors commented on 806e4f0 Aug 5, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from alexcrichton
at michaelsproul@806e4f0

@bors
Copy link
Contributor

@bors bors commented on 806e4f0 Aug 5, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging michaelsproul/rust/gedit-macro = 806e4f0 into auto

@bors
Copy link
Contributor

@bors bors commented on 806e4f0 Aug 5, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

michaelsproul/rust/gedit-macro = 806e4f0 merged ok, testing candidate = fde58d9

@bors
Copy link
Contributor

@bors bors commented on 806e4f0 Aug 5, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = fde58d9

Please sign in to comment.