[gtksourceview] html.lang: add embedded-lang-hook in <style> and <script>
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] html.lang: add embedded-lang-hook in <style> and <script>
- Date: Sat, 8 Feb 2014 22:15:21 +0000 (UTC)
commit ebf49c076100c77be5630cc4f51df79b15624633
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sat Feb 8 23:12:54 2014 +0100
html.lang: add embedded-lang-hook in <style> and <script>
So embedded PHP have more chances to be highlighted in a <style> or
<script> tag. This will not always work. For example, if we are inside a
CSS or JavaScript context, the PHP can not be highlighted.
data/language-specs/html.lang | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/data/language-specs/html.lang b/data/language-specs/html.lang
index c487fa7..58bf062 100644
--- a/data/language-specs/html.lang
+++ b/data/language-specs/html.lang
@@ -223,6 +223,7 @@
<include>
<context sub-pattern="0" where="start" style-ref="tag"/>
<context sub-pattern="0" where="end" style-ref="tag"/>
+ <context ref="embedded-lang-hook"/>
<context ref="css:css"/>
</include>
</context>
@@ -245,6 +246,7 @@
<include>
<context sub-pattern="0" where="start" style-ref="tag"/>
<context sub-pattern="0" where="end" style-ref="tag"/>
+ <context ref="embedded-lang-hook"/>
<context ref="js:js"/>
</include>
</context>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]