summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith Hall <kingkeith+github@gmail.com>2021-04-07 22:01:10 +0300
committerKeith Hall <kingkeith+github@gmail.com>2021-04-07 22:33:59 +0300
commit867cf63dd9db70adad65f4e8a9ac38a4fce352e9 (patch)
treea5853447047e475547ab1c5901005eb325d75d7b
parent7c4edacb2be13eef3afe0e2b23fb83c7ca813dd7 (diff)
add word boundaries to log syntax highlighting
-rw-r--r--assets/syntaxes/02_Extra/log.sublime-syntax8
1 files changed, 4 insertions, 4 deletions
diff --git a/assets/syntaxes/02_Extra/log.sublime-syntax b/assets/syntaxes/02_Extra/log.sublime-syntax
index 2c961008..5e4501b8 100644
--- a/assets/syntaxes/02_Extra/log.sublime-syntax
+++ b/assets/syntaxes/02_Extra/log.sublime-syntax
@@ -25,7 +25,7 @@ contexts:
- include: dates
- include: ip_addresses
- include: numbers
- - match: \b(?i:fail(?:ure|ed)?|error)\b
+ - match: \b(?i:fail(?:ure|ed)?|error|exception)\b
scope: invalid.illegal.error.log
#- include: scope:text.html.markdown#autolink-inet
- match: \b\w+:/{2,3}
@@ -41,7 +41,7 @@ contexts:
captures:
1: punctuation.separator.decimal.log
ip_addresses:
- - match: (?=(?:{{ipv4_part}}\.){3}{{ipv4_part}})
+ - match: \b(?=(?:{{ipv4_part}}\.){3}{{ipv4_part}}\b)
push:
- meta_scope: meta.ipaddress.v4.log meta.number.integer.decimal.log
- match: \d+
@@ -50,7 +50,7 @@ contexts:
scope: punctuation.separator.sequence.log
- match: ''
pop: true
- - match: (?=(?:\h{0,4}:){2,6}\h{1,4})
+ - match: (?=(?:\h{0,4}:){2,6}\h{1,4}\b)
push:
- meta_scope: meta.ipaddress.v6.log meta.number.integer.hexadecimal.log
- match: \h{1,4}
@@ -60,7 +60,7 @@ contexts:
- match: ''
pop: true
numbers:
- - match: (0x)(\h+)(?:(\.)(\h+))?
+ - match: \b(0x)(\h+)(?:(\.)(\h+))?\b
scope: meta.number.float.hexadecimal.log
captures:
1: constant.numeric.base.log