orca m quote-escaping in strings.

This commit is contained in:
Kelvin Sherlock 2017-09-16 21:15:30 -04:00
parent 9d819c5f89
commit db5fb2e8cf

View File

@ -228,7 +228,7 @@ contexts:
set: set:
- meta_include_prototype: false - meta_include_prototype: false
- meta_scope: string.quoted.single - meta_scope: string.quoted.single
- match: "''" # escaping quote - match: \''|[^'\n] # '' to escape
- match: "'" - match: "'"
scope: punctuation.definition.string.end scope: punctuation.definition.string.end
set: operand-dc set: operand-dc
@ -282,6 +282,7 @@ contexts:
push: push:
- meta_include_prototype: false - meta_include_prototype: false
- meta_scope: string.quoted.single - meta_scope: string.quoted.single
- match: \''|[^'\n] # '' to escape
- match: "'" - match: "'"
scope: punctuation.definition.string.end scope: punctuation.definition.string.end
pop: true pop: true
@ -293,6 +294,7 @@ contexts:
push: push:
- meta_include_prototype: false - meta_include_prototype: false
- meta_scope: string.quoted.double - meta_scope: string.quoted.double
- match: \""|[^"\n] # '' to escape
- match: '"' - match: '"'
scope: punctuation.definition.string.end scope: punctuation.definition.string.end
pop: true pop: true
@ -306,6 +308,7 @@ contexts:
push: push:
- meta_include_prototype: false - meta_include_prototype: false
- meta_scope: string.quoted.single - meta_scope: string.quoted.single
- match: \''|[^'\n] # '' to escape
- match: "'" - match: "'"
scope: punctuation.definition.string.end scope: punctuation.definition.string.end
pop: true pop: true