Skip to content

Commit

Permalink
Added JSON versions for tmPreference and tmLanguage files for easy mo…
Browse files Browse the repository at this point in the history
…dification

Also re-build the tmLanguage file to include correct DOCTYPE
  • Loading branch information
Bogardo committed May 7, 2014
1 parent f1adb89 commit 76dfcac
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
13 changes: 13 additions & 0 deletions syntax/Comments.JSON-tmPreferences
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "Comments",
"scope": "source.hosts-config",
"settings": {
"shellVariables": [
{
"name": "TM_COMMENT_START",
"value": "# "
}
]
},
"uuid": "E6CBDBA3-30DC-4EBD-B4DD-2527FBEED52A"
}
23 changes: 23 additions & 0 deletions syntax/Host Config.JSON-tmLanguage
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"fileTypes": [
"hosts"
],
"name": "Hosts Config",
"patterns": [
{
"captures": {
"1": {
"name": "punctuation.definition.comment.source.hosts-config"
}
},
"name": "comment.line.number-sign.source.hosts-config",
"match": "(#).*$\\n?"
},
{
"name": "constant.source.hosts-config",
"match": "^[\\d|\\.]+"
}
],
"scopeName": "source.hosts-config",
"uuid": "783C4FE3-EF25-41F2-9AF4-B6094E9927A2"
}
2 changes: 1 addition & 1 deletion syntax/Host Config.tmLanguage
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?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">
<!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>
Expand Down

0 comments on commit 76dfcac

Please sign in to comment.