[gtksourceview: 1/3] jade.lang: Fix block comments
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview: 1/3] jade.lang: Fix block comments
- Date: Tue, 29 Jun 2021 17:49:45 +0000 (UTC)
commit f79da8024499a9fdab1305e83625f3f2335e2132
Author: Colin Kinloch <colin kinlo ch>
Date: Tue Jun 29 17:45:12 2021 +0100
jade.lang: Fix block comments
data/language-specs/jade.lang | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/data/language-specs/jade.lang b/data/language-specs/jade.lang
index 1598f562..29344cd3 100644
--- a/data/language-specs/jade.lang
+++ b/data/language-specs/jade.lang
@@ -206,11 +206,9 @@
<match>\.[a-zA-Z0-9_-]+</match>
</context>
- <context id="line-comment" style-ref="comment" end-at-line-end="true" class="comment"
class-disabled="no-spell-check">
- <start>//</start>
- <include>
- <context ref="def:in-line-comment"/>
- </include>
+ <context id="block-comment" style-ref="comment" class="comment" end-parent="true"
class-disabled="no-spell-check">
+ <start>^(?'indent'\s*)\/\/</start>
+ <end>^(?!\%{indent@start}\s+)</end>
</context>
<context id="jade-executable">
@@ -238,7 +236,7 @@
<context ref="attribute-id"/>
<context ref="attribute-class"/>
<context ref="tags"/>
- <context ref="line-comment"/>
+ <context ref="block-comment"/>
<context ref="jade-executable"/>
<context ref="interpolated" />
<context ref="jade-filter"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]