Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions Modes/YAML.seemode/Contents/Info.plist
Original file line number Diff line number Diff line change
@@ -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>CFBundleIdentifier</key>
<string>SEEMode.YAML</string>
<key>CFBundleName</key>
<string>YAML</string>
<key>NSHumanReadableCopyright</key>
<string>© 2020 Pierre Corcoran</string>
<key>CFBundleShortVersionString</key>
<string>4.0</string>
<key>CFBundleVersion</key>
<string>4.0</string>
<key>SEEMinimumEngineVersion</key>
<string>4.0</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
</dict>
</plist>
Binary file not shown.
7 changes: 7 additions & 0 deletions Modes/YAML.seemode/Contents/Resources/ModeSettings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<settings>
<recognition>
<extension>yml</extension>
<extension>yaml</extension>
</recognition>
</settings>
14 changes: 14 additions & 0 deletions Modes/YAML.seemode/Contents/Resources/RegexSymbols.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE syntax SYSTEM "symbol.dtd">
<symbols>
<symbol id="CVS/SVN conflict" font-weight="bold" image="SymbolWarn" indentation="0" ignoreblocks="no">
<regex>^&lt;&lt;&lt;&lt;&lt;&lt;&lt;([\n\r]|.)*?======([\n\r]|.)*?&gt;&gt;&gt;&gt;&gt;&gt;&gt;</regex>
<postprocess>
<find>.*</find>
<replace>Versioning conflict!</replace>
</postprocess>
</symbol>
<symbol id="Pragma marks" font-weight="normal" font-style="normal" image="SymbolMark" indentation="0" ignoreblocks="no" show-in-comments="yes">
<regex># !([^\n\r]+)</regex>
</symbol>
</symbols>
35 changes: 35 additions & 0 deletions Modes/YAML.seemode/Contents/Resources/SyntaxDefinition.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<syntax>
<head>
<name>YAML</name>
<charsintokens><![CDATA[_0987654321abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ@]]></charsintokens>
</head>
<states>
<default id="Base" scope="meta.default">
<keywords id="Keywords" casesensitive="no" useforautocomplete="yes" scope="keyword">
<regex>^(?:\s|-)*([^\n]*?):</regex>
</keywords>
<keywords id="Built-in Constants" casesensitive="no" useforautocomplete="yes" scope="support.constant">
<string>True</string>
<string>False</string>
<string>Yes</string>
<string>No</string>
</keywords>
<keywords id="Numbers" useforautocomplete="no" scope="language.constant.numeric">
<!-- floats -->
<regex>(?&lt;![\w\d_\.])((?:(?:(?:(?:\d+\.\d*|\.\d+)(?:[eE][+-]?\d+)?)|(?:[\d+][eE][+-]?\d+))[jJ]?)|\d+[jJ])(?![\w\d_\.])</regex>
<!-- integers -->
<regex>(?&lt;![\w\d_\.])((?:(?:(?:[1-9]\d*)|(?:0(?:(?:[oO][0-7]+)|(?:[xX]\h+)|(?:[bB][01]+))?))[lL]?))(?![\w\d_\.])</regex>
</keywords>
<state id="Singleline Comment" type="comment" scope="comment.line">
<begin><regex>(?:^|\s)#</regex></begin>
<end><regex>[\n\r]</regex></end>
<import mode="Base" state="EmailAndURLContainerState" keywords-only="yes"/>
</state>
<keywords id="Trailing Whitespace" scope="meta.whitespace">
<regex>\r?\n([ \t]+)\r?\n</regex>
<regex>([ \t]+)\r?\n</regex>
</keywords>
</default>
</states>
</syntax>
Binary file added Modes/zipped/YAML.seemode.zip
Binary file not shown.