Browse Source

update

master
budRich 2 years ago
parent
commit
66bebcab82
4 changed files with 119 additions and 0 deletions
  1. +20
    -0
      DquoteComments.tmPreferences
  2. +49
    -0
      ssDquote.sublime-syntax
  3. +31
    -0
      ssDquote.tmLanguage
  4. +19
    -0
      ssDquote.tmPreferences

+ 20
- 0
DquoteComments.tmPreferences View File

@@ -0,0 +1,20 @@
<?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>scope</key>
<string>source.ssDquote</string>
<key>settings</key>
<dict>
<key>shellVariables</key>
<array>
<dict>
<key>name</key>
<string>TM_COMMENT_START</string>
<key>value</key>
<string>" </string>
</dict>
</array>
</dict>
</dict>
</plist>

+ 49
- 0
ssDquote.sublime-syntax View File

@@ -0,0 +1,49 @@
%YAML 1.2
---
name: ssDquote
fileTypes: []
scope: source.ssDquote

contexts:
# The prototype context is prepended to all contexts but those setting
# meta_include_prototype: false.
prototype:
- include: comments

main:
- include: numbers
# - include: strings
# - include: budsym

numbers:
- match: '\b(-)?[0-9.]+\b'
scope: constant.numeric.ssDquote



comments:
# Comments begin with a '"' and finish at the end of the line.
- match: '"'
scope: punctuation.definition.comment.ssDquote
push:
- include: budsym
- meta_scope: comment.line.double-slash.ssDquote
- match: $\n?
pop: true

budsym-terminator:
- match: '[ ]*(;*)[ ]*($\n?)'
captures:
1: punctuation.definition.heading.end.markdown
2: meta.whitespace.newline.markdown
pop: true
budsym:
- meta_include_prototype: false
- match: ' >>'
# - match: '(>{1,6})(?!>)\s*(?=\S)'
captures:
1: punctuation.definition.heading.begin.markdown
push:
- meta_scope: markup.heading.markdown
- meta_content_scope: entity.name.section.markdown
- include: budsym-terminator

+ 31
- 0
ssDquote.tmLanguage View File

@@ -0,0 +1,31 @@
<?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>name</key>
<string>ssDquote</string>
<key>patterns</key>
<array>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>comment.line.ssDquote</string>
</dict>
</dict>
<key>match</key>
<string>"</string>
<key>name</key>
<string>comment</string>
</dict>
</array>
<key>scopeName</key>
<string>source.ssDquote</string>
<key>uuid</key>
<string>1bee511d-647d-4ae7-8724-6d6767e2502d</string>
</dict>
</plist>

+ 19
- 0
ssDquote.tmPreferences View File

@@ -0,0 +1,19 @@
<?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>name</key>
<string>Symbol List</string>
<key>scope</key>
<string>source.ssDquote markup.heading - meta.whitespace.newline.ssDquote</string>
<key>settings</key>
<dict>
<key>showInSymbolList</key>
<integer>1</integer>
<key>symbolIndexTransformation</key>
<string>
s/\s*\;+\s*$//g;
</string>
</dict>
</dict>
</plist>

Loading…
Cancel
Save