How to modify a sublime-syntax file to include following lines in sytnax coloring?

14 Views Asked by At

I'm trying to color a log file, and a simple syntax definition:

%YAML 1.2
---
name: Fluxus Log Syntax
file_extensions:
  - log
scope: source.customlog
contexts:
  main:
    - match: '.*\|Debug\|.*$'
      scope: debug.line.log
    - match: '.*\|Info\|.*$'
      scope: info.line.log
    - match: '.*\|Warning\|.*$'
      scope: warning.line.log
    - match: '.*\|Error\|.*$'
      scope: error.line.log

is close, however, it doesn't, for example, color the following lines of error traces in red:

syntax highlighting

Any ideas on how to fix simply? I've tried meta_context and poping and haven't had luck...

0

There are 0 best solutions below