[gtksourceview] cmake.lang: add highlighting for bracket arguments
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] cmake.lang: add highlighting for bracket arguments
- Date: Thu, 16 Nov 2017 14:49:07 +0000 (UTC)
commit 533f5a36c30d6544decbb48703ca57e8490c5634
Author: Роман Донченко <dpb corrigendum ru>
Date: Sun Nov 12 19:34:44 2017 +0300
cmake.lang: add highlighting for bracket arguments
https://bugzilla.gnome.org/show_bug.cgi?id=790345
data/language-specs/cmake.lang | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/data/language-specs/cmake.lang b/data/language-specs/cmake.lang
index 426b653..0c0819e 100644
--- a/data/language-specs/cmake.lang
+++ b/data/language-specs/cmake.lang
@@ -35,6 +35,7 @@
<style id="control" name="Control Keyword" map-to="def:keyword"/>
<style id="variable" name="Variable" map-to="makefile:variable"/>
<style id="quoted-argument" name="Quoted Argument" map-to="def:string"/>
+ <style id="bracket-argument" name="Bracket Argument" map-to="def:string"/>
</styles>
<definitions>
@@ -738,6 +739,11 @@
</include>
</context>
+ <context id="bracket-argument" style-ref="bracket-argument">
+ <start>\[(=*)\[</start>
+ <end>\]\%{1@start}\]</end>
+ </context>
+
<context id="variable-assignment">
<start>\b((?i)SET)\b\s*\(\s*([\w_][\w\d_]*)</start>
<end>\)</end>
@@ -748,6 +754,7 @@
<context ref="env-variable-reference"/>
<context ref="constant"/>
<context ref="quoted-argument"/>
+ <context ref="bracket-argument"/>
<context ref="def:shell-like-comment"/>
</include>
</context>
@@ -757,6 +764,7 @@
<context ref="variable-reference"/>
<context ref="env-variable-reference"/>
<context ref="quoted-argument"/>
+ <context ref="bracket-argument"/>
<context ref="variable-assignment"/>
<context ref="def:shell-like-comment"/>
<context ref="constant"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]