[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdelibs/kate/data
From: Bram Schoenmakers <bramschoenmakers () kde ! nl>
Date: 2005-04-06 8:22:00
Message-ID: 20050406082200.0F90763E () office ! kde ! org
[Download RAW message or body]
CVS commit by bram:
Pascal Syntax Highlighting: Pick up the begin and end regions if one of these \
keywords is directly followed by an comment. Code like "end{comment}" didn't match as \
end of region before.
Backport candidate?
M +2 -2 pascal.xml 1.19
--- kdelibs/kate/data/pascal.xml #1.18:1.19
@@ -131,7 +131,7 @@
<contexts>
<context attribute="Normal Text" lineEndContext="#stay" name="Normal">
- <RegExpr attribute="Keyword" context="#stay" \
String="\b(begin|case|record)([\s]|$)" insensitive="true" beginRegion="Region1"/> + \
<RegExpr attribute="Keyword" context="#stay" \
String="\b(begin|case|record)(?=(\{[^}]*(\}|$)|\(\*.*(\*\)|$))*([\s]|$|//))" \
insensitive="true" beginRegion="Region1"/>
<RegExpr attribute="ISO/Delphi Extended" context="#stay" \
String="\b(try|class|object)([\s]|$)" insensitive="true" \
beginRegion="Region1"/>
- <RegExpr attribute="Keyword" context="#stay" String="\bend([.;\s]|$)" \
insensitive="true" endRegion="Region1"/> + <RegExpr attribute="Keyword" \
context="#stay" String="\bend(?=((\{[^}]*(\}|$)|\(\*.*(\*\)|$))*)([.;\s]|$)|//|$)" \
insensitive="true" endRegion="Region1"/> <keyword attribute="Keyword" \
context="#stay" String="keywords"/>
<keyword attribute="ISO/Delphi Extended" context="#stay" String="ISO/Delphi \
Extended"/>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic