[gtksourceview] php.lang: different style for open and close tags
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] php.lang: different style for open and close tags
- Date: Sun, 9 Feb 2014 20:39:10 +0000 (UTC)
commit c732a88df6c552ebb2ed6d10015b50d6e3208ef9
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sun Feb 9 21:35:38 2014 +0100
php.lang: different style for open and close tags
The def:preprocessor style is the closest thing available.
Thanks to Patryk Zawadzki for the initial patch.
https://bugzilla.gnome.org/show_bug.cgi?id=617133
data/language-specs/php.lang | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/data/language-specs/php.lang b/data/language-specs/php.lang
index a6d215a..5ff4c0e 100644
--- a/data/language-specs/php.lang
+++ b/data/language-specs/php.lang
@@ -37,6 +37,7 @@
</metadata>
<styles>
+ <style id="preprocessor" _name="Preprocessor tags" map-to="def:preprocessor"/>
<style id="comment" _name="Comment" map-to="def:comment"/>
<style id="error" _name="Error" map-to="def:error"/>
<style id="variable" _name="Variable" map-to="def:identifier"/>
@@ -325,8 +326,8 @@
<start><([?](php)?)</start>
<end>[?]></end>
<include>
- <context sub-pattern="0" where="start" style-ref="keyword"/>
- <context sub-pattern="0" where="end" style-ref="keyword"/>
+ <context sub-pattern="0" where="start" style-ref="preprocessor"/>
+ <context sub-pattern="0" where="end" style-ref="preprocessor"/>
<context ref="cpp-line-comment"/>
<context ref="bash-line-comment"/>
<context ref="c-block-comment"/>
@@ -346,7 +347,7 @@
<context ref="decimal-number"/>
<context ref="octal-number"/>
<context ref="hexadecimal-number"/>
- <context ref="identifier"/>
+ <context ref="identifier"/>
</include>
</context>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]