Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
224e1e0a
Commit
224e1e0a
authored
Aug 03, 2011
by
Dominik Haumann
Browse files
fix {...) and (...} matching
BUG: 241266
parent
a33eb21a
Changes
1
Hide whitespace changes
Inline
Side-by-side
part/syntax/data/makefile.xml
View file @
224e1e0a
...
...
@@ -4,7 +4,7 @@
<!-- Modified by Joseph Wenninger <jowenn@kde.org> -->
<!-- Modified by Rui Santana <santana.rui@gmail.com> -->
<!-- small priority to allow for example Makefile.cpp to be detected as cpp file -->
<language
name=
"Makefile"
version=
"1.1
1
"
kateversion=
"2.4"
section=
"Other"
extensions=
"GNUmakefile;Makefile;makefile;GNUmakefile.*;Makefile.*;makefile.*"
mimetype=
"text/x-makefile"
author=
"Per Wigren (wigren@home.se)"
license=
""
>
<language
name=
"Makefile"
version=
"1.1
2
"
kateversion=
"2.4"
section=
"Other"
extensions=
"GNUmakefile;Makefile;makefile;GNUmakefile.*;Makefile.*;makefile.*"
mimetype=
"text/x-makefile"
author=
"Per Wigren (wigren@home.se)"
license=
""
>
<highlighting>
<list
name =
"keywords"
>
<item>
include
</item>
...
...
@@ -62,7 +62,8 @@
<RegExpr
attribute=
"Target"
context=
"#stay"
String=
"[_\w\d-]*\s*:"
firstNonSpace=
"true"
/>
<RegExpr
attribute=
"Section"
context=
"#stay"
String=
"^[.].*:"
/>
<DetectChar
attribute=
"String"
context=
"String"
char=
"""
/>
<RegExpr
attribute=
"Operator"
context=
"VarFromNormal"
String=
"[$][\({]"
/>
<Detect2Chars
attribute=
"Operator"
context=
"VarFromNormal{"
char=
"$"
char1=
"{"
/>
<Detect2Chars
attribute=
"Operator"
context=
"VarFromNormal("
char=
"$"
char1=
"("
/>
<Detect2Chars
attribute=
"Special"
context=
"#stay"
char=
"\"
char1=
"#"
/>
<Detect2Chars
attribute=
"Special"
context=
"#stay"
char=
"\"
char1=
"\"
/>
<AnyChar
attribute=
"Operator"
context=
"#stay"
String=
"+*=%$():\;"
/>
...
...
@@ -75,32 +76,47 @@
<DetectChar
attribute=
"String"
context=
"#pop"
char=
"""
/>
</context>
<context
name=
"Value"
attribute=
"String"
lineEndContext=
"#
stay
"
>
<context
name=
"Value"
attribute=
"String"
lineEndContext=
"#
pop
"
>
<LineContinue
attribute=
"Operator"
/>
<
RegExpr
attribute=
"String"
String=
"[^\\]?$"
context=
"#pop
"
/>
<
RegExpr
attribute=
"Operator"
String=
"[$][\({]"
context=
"VarFromValue"
/>
<
Detect2Chars
attribute=
"Operator"
context=
"VarFromValue{"
char=
"$"
char1=
"{
"
/>
<
Detect2Chars
attribute=
"Operator"
context=
"VarFromValue
("
char=
"$"
char1=
"(
"
/>
<RegExpr
attribute=
"Special"
context=
"#pop"
String=
"@[-_\d\w]*@"
/>
<DetectChar
attribute=
"Operator"
char=
";"
context=
"#pop"
/>
</context>
<context
name=
"VarFromValue"
attribute=
"Variable"
lineEndContext=
"#stay"
>
<RegExpr
attribute=
"Operator"
String=
"[\)}](?=/)"
context=
"#pop"
/>
<RegExpr
attribute=
"Operator"
String=
"[\)}][^$]"
context=
"#pop"
/>
<RegExpr
attribute=
"Operator"
String=
"[\)}]$"
context=
"#pop#pop"
/>
<context
name=
"VarFromValue("
attribute=
"Variable"
lineEndContext=
"#stay"
>
<DetectChar
attribute=
"Operator"
char=
")"
context=
"#pop"
/>
</context>
<context
name=
"VarFromNormal"
attribute=
"Variable"
lineEndContext=
"#stay"
>
<keyword
attribute=
"Keyword"
context=
"FunctionCall"
String=
"functions"
/>
<AnyChar
attribute=
"Operator"
String=
")}"
context=
"#pop"
/>
<context
name=
"VarFromValue{"
attribute=
"Variable"
lineEndContext=
"#stay"
>
<DetectChar
attribute=
"Operator"
char=
"}"
context=
"#pop"
/>
</context>
<context
name=
"FunctionCall"
attribute=
"String"
lineEndContext=
"#stay"
>
<RegExpr
attribute=
"Operator"
context=
"VarFromNormal"
String=
"[$][\({]"
/>
<AnyChar
attribute=
"Operator"
String=
")}"
context=
"#pop#pop"
/>
<context
name=
"VarFromNormal("
attribute=
"Variable"
lineEndContext=
"#stay"
>
<keyword
attribute=
"Keyword"
context=
"FunctionCall("
String=
"functions"
/>
<DetectChar
attribute=
"Operator"
char=
")"
context=
"#pop"
/>
</context>
<context
name=
"VarFromNormal{"
attribute=
"Variable"
lineEndContext=
"#stay"
>
<keyword
attribute=
"Keyword"
context=
"FunctionCall{"
String=
"functions"
/>
<DetectChar
attribute=
"Comment"
char=
"}"
context=
"#pop"
/>
</context>
<context
name=
"FunctionCall("
attribute=
"String"
lineEndContext=
"#stay"
>
<Detect2Chars
attribute=
"Operator"
context=
"VarFromNormal{"
char=
"$"
char1=
"{"
/>
<Detect2Chars
attribute=
"Operator"
context=
"VarFromNormal("
char=
"$"
char1=
"("
/>
<DetectChar
attribute=
"Operator"
char=
")"
context=
"#pop#pop"
/>
</context>
<context
name=
"FunctionCall{"
attribute=
"String"
lineEndContext=
"#stay"
>
<Detect2Chars
attribute=
"Operator"
context=
"VarFromNormal{"
char=
"$"
char1=
"{"
/>
<Detect2Chars
attribute=
"Operator"
context=
"VarFromNormal("
char=
"$"
char1=
"("
/>
<DetectChar
attribute=
"Operator"
char=
"}"
context=
"#pop#pop"
/>
</context>
<context
name=
"Commands"
attribute=
"Normal Text"
lineEndContext=
"#pop"
>
<RegExpr
attribute=
"Operator"
context=
"VarFromNormal"
String=
"[$][\({]"
/>
<Detect2Chars
attribute=
"Operator"
context=
"VarFromNormal{"
char=
"$"
char1=
"{"
/>
<Detect2Chars
attribute=
"Operator"
context=
"VarFromNormal("
char=
"$"
char1=
"("
/>
<RegExpr
attribute=
"Commands"
context=
"#pop"
String=
"[_\w-]*\b"
/>
</context>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment