JavaProperties.sublime-syntax (1214B)
1 %YAML 1.2 2 --- 3 # http://www.sublimetext.com/docs/3/syntax.html 4 name: Java Properties 5 file_extensions: 6 - properties 7 scope: source.java-props 8 9 # https://en.wikipedia.org/wiki/.properties 10 contexts: 11 main: 12 - match: ^\s*([#!]).* 13 scope: comment.line.java-props 14 captures: 15 1: punctuation.definition.comment.java-props 16 17 - match: (?=\S) 18 push: 19 - - meta_scope: meta.property.java-props 20 - match: '' 21 pop: true 22 - property 23 24 property: 25 - meta_content_scope: entity.name.key.java-props 26 - include: backslash 27 - match: (?=[:=\s]) 28 set: 29 - match: '[:=]' 30 scope: punctuation.separator.java-props 31 set: property-value 32 - include: property-value 33 with_prototype: 34 - match: (?=\n) 35 pop: true 36 37 property-value: 38 - match: (?=\S) 39 set: 40 - meta_content_scope: string.unquoted.java-props 41 - include: backslash 42 43 backslash: 44 - match: (\\)\n 45 captures: 46 1: punctuation.separator.continuation.java-props 47 - match: \\u[[:xdigit:]]{4} 48 scope: constant.character.escape.unicode.java-props 49 - match: \\[^u] 50 scope: constant.character.escape.java-props