Skip to content
Permalink
Browse files

Fix Kate highlighting of directives with no arguments

  • Loading branch information...
pmoura committed Mar 14, 2019
1 parent 26cb709 commit 749810e2a29434c84ad141e94f2afafcf32ac12c
Showing with 7 additions and 7 deletions.
  1. +2 −2 RELEASE_NOTES.md
  2. +5 −5 coding/kate/logtalk.xml
@@ -153,8 +153,8 @@ example.
IDEs, text editors, and syntax highlighters support
---------------------------------------------------

* FIXED: Pygments highlighting of directives with no arguments to not colorize
the ending dot.
* FIXED: Kate and Pygments highlighting of directives with no arguments to not
colorize the ending dot.


3.24.0 - February 28, 2019
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">

<language name="Logtalk" version="2.12" kateversion="2.4" section="Sources" extensions="*.lgt;.logtalk" mimetype="text/x-logtalk" author="Paulo Moura (pmoura@logtalk.org)" license="Apache License 2.0">
<language name="Logtalk" version="2.13" kateversion="2.4" section="Sources" extensions="*.lgt;.logtalk" mimetype="text/x-logtalk" author="Paulo Moura (pmoura@logtalk.org)" license="Apache License 2.0">

<highlighting>

@@ -167,19 +167,19 @@
<context name = "directive" attribute = "Directive" lineEndContext = "#stay" >
<!-- Conditional compilation directives -->
<RegExpr String = "\bif(?=[(])" attribute = "Directive" context = "#pop" beginRegion = "CC" />
<RegExpr String = "\bendif[.]" attribute = "Directive" context = "#pop" endRegion = "CC" />
<RegExpr String = "\bendif(?=[.])" attribute = "Directive" context = "#pop" endRegion = "CC" />
<RegExpr String = "\belif(?=[(])" attribute = "Directive" context = "#pop"/>
<RegExpr String = "\belse[.]" attribute = "Directive" context = "#pop" />
<RegExpr String = "\belse(?=[.])" attribute = "Directive" context = "#pop" />
<!-- Entity directives -->
<RegExpr String = "\b(category|object|protocol)(?=[(])" attribute = "Directive" context = "entityrelations" beginRegion = "Entity" />
<RegExpr String = "\bend_(category|object|protocol)[.]" attribute = "Directive" context = "#pop" endRegion = "Entity" />
<RegExpr String = "\bend_(category|object|protocol)(?=[.])" attribute = "Directive" context = "#pop" endRegion = "Entity" />
<RegExpr String = "\bmodule(?=[(])" attribute = "Directive" context = "#pop"/>
<!-- Predicate scope directives -->
<RegExpr String = "\bp(ublic|r(otected|ivate))(?=[(])" attribute = "Directive" context = "#pop" />
<!-- Other directives -->
<RegExpr String = "\be(n(coding|sure_loaded)|xport)(?=[(])" attribute = "Directive" context = "#pop" />
<RegExpr String = "\bin(clude|itialization|fo)(?=[(])" attribute = "Directive" context = "#pop" />
<RegExpr String = "\b(built_in|dynamic|synchronized|threaded)[.]" attribute = "Directive" context = "#pop" />
<RegExpr String = "\b(built_in|dynamic|synchronized|threaded)(?=[.])" attribute = "Directive" context = "#pop" />
<RegExpr String = "\b(alias|d(ynamic|iscontiguous)|m(eta_(non_terminal|predicate)|ode|ultifile)|s(et_(logtalk|prolog)_flag|ynchronized))(?=[(])" attribute = "Directive" context = "#pop" />
<RegExpr String = "\bop(?=[(])" attribute = "Directive" context = "#pop" />
<RegExpr String = "\b(c(alls|oinductive)|reexport|use(s|_module))(?=[(])" attribute = "Directive" context = "#pop" />

0 comments on commit 749810e

Please sign in to comment.
You can’t perform that action at this time.