Sublime Forum

[syntax] how to match a single quote?

#1

How to match a single quote ’ (it’s a single line comment in FreeBASIC language)
I tryed without success:

  • match: ‘’’
  • match: “’”
  • match: ‘’’

thank you

DJ

0 Likes

#2

- match: "'" should work fine, it’s what I’ve used before

- match: "'"
  scope: punctuation.definition.comment.freebasic
  push:
    - meta_scope: comment.line.freebasic
    - match: '$\n?'
      pop: true
0 Likes