Archived
1
0

Add @ as an escape for usage in other languages

For example to use in Minted
This commit is contained in:
Jip J. Dekker 2019-12-03 12:07:02 +11:00
parent e2134fee64
commit 3080d3bd6c

View File

@ -51,6 +51,13 @@ styles [] {
pygments_scope = String.Escape
}
.escaped : style {
color = brown
ace_scope = text
textmate_scope = text
pygments_scope = Generic.Inserted
}
.function : style {
color = green
ace_scope = entity.name.function
@ -146,6 +153,17 @@ main : context {
styles [] = .comment;
}
# Escape to non-MiniZinc code or comments
: inline_push {
regex \= (@)
styles [] = .escaped;
default_style = .escaped
: pop {
regex \= (@)
styles [] = .escaped;
}
}
#######################################
## Literal Patterns
#######################################