[gtksourceview] html.lang: improve style-ref for attributes
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] html.lang: improve style-ref for attributes
- Date: Sat, 8 Feb 2014 21:07:56 +0000 (UTC)
commit eb8c4ce69355a447d25b23b4c0d79a2dd20944fb
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sat Feb 8 21:41:00 2014 +0100
html.lang: improve style-ref for attributes
The attrib-name style was applied to the entire context. It is now
applied only to the attribute name (plus the = sign).
data/language-specs/html.lang | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/data/language-specs/html.lang b/data/language-specs/html.lang
index 158c403..1b881db 100644
--- a/data/language-specs/html.lang
+++ b/data/language-specs/html.lang
@@ -167,14 +167,15 @@
<context id="generic-tag">
<include>
<!-- Attribute in the form: name="value" -->
- <context id="attrib-quoted" style-ref="attrib-name" class="no-spell-check">
+ <context id="attrib-quoted" class="no-spell-check">
<start extended="true">
- [A-Za-z0-9:_-]+ # attribute name
- \s*=\s* # "="
- (\") # string beginning
+ ([A-Za-z0-9:_-]+ # attribute name
+ \s*=\s*) # "="
+ (\") # string beginning
</start>
<include>
- <context sub-pattern="1" where="start" style-ref="attrib-value"/>
+ <context sub-pattern="1" where="start" style-ref="attrib-name"/>
+ <context sub-pattern="2" where="start" style-ref="attrib-value"/>
<context id="string" end-parent="true" end-at-line-end="true" style-ref="attrib-value"
class="string" class-disabled="no-spell-check">
<start>\%{def:always-match}</start>
<end>\"</end>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]