[gtksourceview] html.lang: fix handling of the end of quoted attributes
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] html.lang: fix handling of the end of quoted attributes
- Date: Sat, 8 Feb 2014 19:12:06 +0000 (UTC)
commit 7433cc6663d9d55682709d4fca1c85d2692b9156
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sat Feb 8 20:00:49 2014 +0100
html.lang: fix handling of the end of quoted attributes
The included contexts (xml:entity, xml:character-reference and
embedded-lang-hook) have a higher priority than the <end> of the
attribute.
And when <end> is reached, it ends also the parent context (the
complete attribute).
https://bugzilla.gnome.org/show_bug.cgi?id=565524
data/language-specs/html.lang | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/data/language-specs/html.lang b/data/language-specs/html.lang
index 33e9ea2..b193005 100644
--- a/data/language-specs/html.lang
+++ b/data/language-specs/html.lang
@@ -171,14 +171,13 @@
<start extended="true">
[A-Za-z0-9:_-]+ # attribute name
\s*=\s* # "="
- (\") # string beginning
</start>
- <end>\"</end>
<include>
<context sub-pattern="1" where="start" style-ref="attrib-value"/>
<context sub-pattern="0" where="end" style-ref="attrib-value"/>
- <context id="string" extend-parent="false" end-at-line-end="true" style-ref="attrib-value"
class="string" class-disabled="no-spell-check">
- <start>\%{def:always-match}</start>
+ <context id="string" end-parent="true" end-at-line-end="true" style-ref="attrib-value"
class="string" class-disabled="no-spell-check">
+ <start>\"</start>
+ <end>\"</end>
<include>
<context ref="xml:entity"/>
<context ref="xml:character-reference"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]