Browse files

Add grammar for to-do keywords.

This is injected into comments and plain text files.
  • Loading branch information...
1 parent 8e1dfa3 commit d3e43f9c15a22f5101df074218540712b749a494 @sorbits sorbits committed May 18, 2011
Showing with 39 additions and 0 deletions.
  1. +39 −0 Syntaxes/TODO.tmLanguage
View
39 Syntaxes/TODO.tmLanguage
@@ -0,0 +1,39 @@
+<?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/>
+ <key>injectionSelector</key>
+ <string>comment, text.plain</string>
+ <key>name</key>
+ <string>TODO</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>match</key>
+ <string>\b(TODO|FIXME|CHANGED)\b</string>
+ <key>name</key>
+ <string>storage.type.class.${1:/downcase}</string>
+ </dict>
+ <dict>
+ <key>captures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>markup.underline.link.radar</string>
+ </dict>
+ </dict>
+ <key>match</key>
+ <string>&lt;(ra?dar:/(?:/problem|)/(?:[&amp;0-9]+))&gt;</string>
+ <key>name</key>
+ <string>storage.type.class.radar</string>
+ </dict>
+ </array>
+ <key>scopeName</key>
+ <string>text.todo</string>
+ <key>uuid</key>
+ <string>94A00B36-AAEF-477A-BA78-9B081B116321</string>
+</dict>
+</plist>

0 comments on commit d3e43f9

Please sign in to comment.