Alexey-T/CudaText

lexer YAML string highlight

Closed this issue · 1 comments

real yaml sample which is hilighted wrong.

        - match: \(
          push:
            - match: ',?\s*([A-Z][\w'']*)\s*(?:\(([A-Z][\w\s,'']*|..)\))?'
              captures:
                1: entity.name.type.purescript
                2: entity.name.function.constructor.purescript
            - match: ',?\s?class\s+([A-Z][\w'']*)'
              captures:
                1: entity.name.typeclass.purescript
            - match: ',?\s?([\w'']*)'
              captures:
                1: entity.name.function
            - match: \)
              pop: true
        - match: '(as)\s+([A-Z][\w'']*)'
          captures:

seems quote-char can be escaped using double-quote-char.
todo.

another bug - quote-char is wrong here:
yaml2