Skip to content
Browse files

Supported .gdoc as GrailsDoc

  • Loading branch information...
1 parent b7f473b commit db23c33de0915613b80d2df2a49828a4ee5f1b66 @nobeans nobeans committed with gcrick
Showing with 46 additions and 1 deletion.
  1. +25 −0 Doc/GrailsDoc.tmLanguage
  2. +10 −0 Doc/code.sublime-snippet
  3. +10 −0 Doc/quote.sublime-snippet
  4. +1 −1 SyntaxDetector.py
View
25 Doc/GrailsDoc.tmLanguage
@@ -0,0 +1,25 @@
+<?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">
+<plist version="1.0">
+<dict>
+ <key>fileTypes</key>
+ <array>
+ <string>gdoc</string>
+ </array>
+ <key>keyEquivalent</key>
+ <string>^~G</string>
+ <key>name</key>
+ <string>Grails Doc (Gdoc)</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>include</key>
+ <string>text.html.textile</string>
+ </dict>
+ </array>
+ <key>scopeName</key>
+ <string>source.grails.gdoc</string>
+ <key>uuid</key>
+ <string>2a58560f-2a3b-4fab-b429-44535ce270bc</string>
+</dict>
+</plist>
View
10 Doc/code.sublime-snippet
@@ -0,0 +1,10 @@
+<snippet>
+ <content><![CDATA[
+{code}
+${1:source}
+{code}
+]]></content>
+ <tabTrigger>code..</tabTrigger>
+ <description>{code} in GrailsDoc</description>
+ <scope>source.grails.gdoc</scope>
+</snippet>
View
10 Doc/quote.sublime-snippet
@@ -0,0 +1,10 @@
+<snippet>
+ <content><![CDATA[
+{quote}
+${1:source}
+{quote}
+]]></content>
+ <tabTrigger>quote..</tabTrigger>
+ <description>{quote} in GrailsDoc</description>
+ <scope>source.grails.gdoc</scope>
+</snippet>
View
2 SyntaxDetector.py
@@ -25,7 +25,7 @@ def on_post_save(self, view):
def check_syntax(self, view):
self.view = view
self.file_name = view.file_name()
-
+
if not self.file_name: # buffer has never been saved
return

0 comments on commit db23c33

Please sign in to comment.
Something went wrong with that request. Please try again.