Permalink
Browse files

Update Syntaxes/JavaProperties.plist

  • Loading branch information...
1 parent 0f4b960 commit 67210027915f92eea2dba4e19c9b85f7fad1cf40 @uchuugaka uchuugaka committed with infininight Jan 30, 2012
Showing with 64 additions and 25 deletions.
  1. +63 −24 Syntaxes/JavaProperties.plist
  2. +1 −1 info.plist
@@ -1,70 +1,109 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
+ <key>scopeName</key>
+ <string>source.java.properties</string>
+ <key>keyEquivalent</key>
+ <string>^~J</string>
<key>fileTypes</key>
<array>
<string>properties</string>
</array>
- <key>keyEquivalent</key>
- <string>^~J</string>
+ <key>foldingStartMarker</key>
+ <string>^[a-zA-Z0-9.-_]+=.*\
+</string>
+ <key>foldingStopMarker</key>
+ <string>^(.*(?&lt;!\)
+)</string>
<key>name</key>
<string>Java Properties</string>
<key>patterns</key>
<array>
<dict>
+ <key>name</key>
+ <string>comment.line.properties</string>
+ <key>match</key>
+ <string>^(#.*)(
+|$)</string>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
- <string>punctuation.definition.comment.java-props</string>
+ <string>comment.definition.comment.java-props</string>
</dict>
</dict>
- <key>match</key>
- <string>([#!])(.+)?$\n?</string>
- <key>name</key>
- <string>comment.line.number-sign.java-props</string>
</dict>
<dict>
- <key>begin</key>
- <string>/\*</string>
+ <key>name</key>
+ <string>kvp.singleline.properties</string>
+ <key>match</key>
+ <string>^(?#KEY)(?:[ ])*([a-zA-Z][^&lt;&gt;/][a-zA-Z0-9-_.]*)(=)(?#VALUE)(.*
+)</string>
<key>captures</key>
<dict>
- <key>0</key>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>markup.heading.kvp.key.java.properties</string>
+ </dict>
+ <key>2</key>
+ <dict>
+ <key>name</key>
+ <string>markup.deleted.kvp.key.java.properties</string>
+ </dict>
+ <key>3</key>
<dict>
<key>name</key>
- <string>punctuation.definition.comment.java-props</string>
+ <string>string.kvp.value.java.properties</string>
</dict>
</dict>
- <key>end</key>
- <string>\*/</string>
- <key>name</key>
- <string>comment.block.java-props</string>
</dict>
<dict>
+ <key>name</key>
+ <string>kvp.dangling.space.between.key.and.equalsign.properties</string>
+ <key>match</key>
+ <string>^(?#KEY)(?:[ ])*([a-zA-Z][^&lt;&gt;/][a-zA-Z0-9-_.]*)([ ]+=)(?#VALUE)(.*
+)</string>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
- <string>keyword.other.java-props</string>
+ <string>meta.line.error.logfile.dangling.key.properties</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
- <string>punctuation.separator.key-value.java-props</string>
+ <string>invalid.illegal.dangling.equalsign.properties</string>
+ </dict>
+ <key>3</key>
+ <dict>
+ <key>name</key>
+ <string>invalid.deprecated.dangling.value.properties</string>
</dict>
</dict>
- <key>comment</key>
- <string>Not compliant with the properties file spec, but this works for me, and I'm the one who counts around here.</string>
+ </dict>
+ <dict>
+ <key>name</key>
+ <string>kvp.multiline.properties</string>
<key>match</key>
- <string>^([^:=]+)([:=])(.*)$</string>
+ <string>^((?:[ ])*[^#].*\
+|(?:[ ])*\
+|(?:[ ])*[^#](?&lt;!=).*
+)</string>
+ <key>captures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>string.kvp.multiline.properties</string>
+ </dict>
+ </dict>
</dict>
</array>
- <key>scopeName</key>
- <string>source.java-props</string>
<key>uuid</key>
- <string>2A28E50A-6B1D-11D9-8689-000D93589AF6</string>
+ <string>D364E829-7643-4AFF-948D-3C0D6B4EA8A4</string>
</dict>
</plist>
View
@@ -143,7 +143,7 @@
<key>ordering</key>
<array>
<string>2B449DF6-6B1D-11D9-94EC-000D93589AF6</string>
- <string>2A28E50A-6B1D-11D9-8689-000D93589AF6</string>
+ <string>D364E829-7643-4AFF-948D-3C0D6B4EA8A4</string>
<string>ACB58B55-9437-4AE6-AF42-854995CF51DF</string>
<string>752A2A98-EB02-4A4D-A3D4-522485DBF491</string>
<string>4BC99514-9BF7-4F4F-BD84-7AD07EB81AC3</string>

0 comments on commit 6721002

Please sign in to comment.