Permalink
Browse files

Add EditorConfig syntax highlighting - fixes #14

  • Loading branch information...
1 parent 2e68c0c commit 19c29d94e0a38bc3ffddc738b961e2dcf9f8fc5d @sindresorhus committed Mar 8, 2014
Showing with 144 additions and 0 deletions.
  1. +23 −0 EditorConfig.tmLanguage
  2. +121 −0 INI.tmLanguage
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>fileTypes</key>
+ <array>
+ <string>.editorconfig</string>
+ </array>
+ <key>name</key>
+ <string>EditorConfig</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>include</key>
+ <string>source.ini</string>
+ </dict>
+ </array>
+ <key>scopeName</key>
+ <string>source.ini.editorconfig</string>
+ <key>uuid</key>
+ <string>9175a436-a65b-11e3-be40-425861b86ab6</string>
+</dict>
+</plist>
View
@@ -0,0 +1,121 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>fileTypes</key>
+ <array>
+ <string>ini</string>
+ <string>INI</string>
+ <string>inf</string>
+ <string>INF</string>
+ <string>reg</string>
+ <string>REG</string>
+ </array>
+ <key>name</key>
+ <string>INI</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>captures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.comment.ini</string>
+ </dict>
+ </dict>
+ <key>match</key>
+ <string>^\s*(;|#).*$\n?</string>
+ <key>name</key>
+ <string>comment.line.semicolon.ini</string>
+ </dict>
+ <dict>
+ <key>captures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.section.ini</string>
+ </dict>
+ <key>2</key>
+ <dict>
+ <key>name</key>
+ <string>entity.section.ini</string>
+ </dict>
+ <key>3</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.section.ini</string>
+ </dict>
+ </dict>
+ <key>match</key>
+ <string>^\s*(\[)(.*?)(\])\s*</string>
+ <key>name</key>
+ <string>meta.tag.section.ini</string>
+ </dict>
+ <dict>
+ <key>captures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>meta.property.ini</string>
+ </dict>
+ <key>2</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.quote.ini</string>
+ </dict>
+ <key>3</key>
+ <dict>
+ <key>name</key>
+ <string>keyword.name.ini</string>
+ </dict>
+ <key>4</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.quote.ini</string>
+ </dict>
+ <key>5</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.equals.ini</string>
+ </dict>
+ <key>6</key>
+ <dict>
+ <key>name</key>
+ <string>meta.value.ini</string>
+ </dict>
+ <key>7</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.quote.ini</string>
+ </dict>
+ <key>8</key>
+ <dict>
+ <key>name</key>
+ <string>string.name.value.ini</string>
+ </dict>
+ <key>9</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.quote.ini</string>
+ </dict>
+ <key>10</key>
+ <dict>
+ <key>name</key>
+ <string>comment.declarationline.semicolon.ini</string>
+ </dict>
+ </dict>
+ <key>match</key>
+ <string>^(\s*(["']?)(.+?)(\2)\s*(=))?\s*((["']?)(.*?)(\7))\s*(;.*)?$\n?</string>
+ <key>name</key>
+ <string>meta.declaration.ini</string>
+ </dict>
+ </array>
+ <key>scopeName</key>
+ <string>source.ini</string>
+ <key>uuid</key>
+ <string>957acd74-6d7c-4732-a25b-5f66a1e637cd</string>
+</dict>
+</plist>

0 comments on commit 19c29d9

Please sign in to comment.