├── .gitignore ├── LICENSE.txt ├── README.md ├── objective-c.configuration.json ├── package.json └── syntaxes └── logos.tmLanguage /.gitignore: -------------------------------------------------------------------------------- 1 | *.DS_Store 2 | .AppleDouble 3 | .LSOverride 4 | 5 | # Icon must end with two \r 6 | Icon 7 | 8 | 9 | # Thumbnails 10 | ._* 11 | 12 | # Files that might appear in the root of a volume 13 | .DocumentRevisions-V100 14 | .fseventsd 15 | .Spotlight-V100 16 | .TemporaryItems 17 | .Trashes 18 | .VolumeIcon.icns 19 | .com.apple.timemachine.donotpresent 20 | 21 | # Directories potentially created on remote AFP share 22 | .AppleDB 23 | .AppleDesktop 24 | Network Trash Folder 25 | Temporary Items 26 | .apdisk -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 David Murray 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | VSCode-Logos 2 | ============= 3 | 4 | Logos syntax highlighter for Visual Studio Code. 5 | 6 | Run `git clone https://github.com/evilgoldfish/VSCode-Logos $HOME/.vscode/extensions/logos` and reload VSCode (close and reopen). You should now have syntax highlighting for logos. 7 | 8 | * It could be better, a lot better. I do not know regexes enough to fix it, but if anyone feels like contributing, it would be appreciated. 9 | -------------------------------------------------------------------------------- /objective-c.configuration.json: -------------------------------------------------------------------------------- 1 | { 2 | "comments": { 3 | "lineComment": "//", 4 | "blockComment": [ "/*", "*/" ] 5 | }, 6 | "brackets": [ 7 | ["{", "}"], 8 | ["[", "]"], 9 | ["(", ")"] 10 | ], 11 | "autoClosingPairs": [ 12 | ["{", "}"], 13 | ["[", "]"], 14 | ["(", ")"], 15 | ["\"", "\""], 16 | ["'", "'"] 17 | ], 18 | "surroundingPairs": [ 19 | ["{", "}"], 20 | ["[", "]"], 21 | ["(", ")"], 22 | ["\"", "\""], 23 | ["'", "'"] 24 | ] 25 | } -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "logos", 3 | "version": "0.0.1", 4 | "engines": { 5 | "vscode": ">=0.9.0-pre.1" 6 | }, 7 | "publisher": "b3ll, Cykey", 8 | "contributes": { 9 | "languages": [{ 10 | "id": "logos", 11 | "aliases": ["Logos", "logos"], 12 | "extensions": [".xm",".x",".xi",".xmi"], 13 | "configuration": "./objective-c.configuration.json" 14 | }], 15 | "grammars": [{ 16 | "language": "logos", 17 | "scopeName": "source.logos", 18 | "path": "./syntaxes/logos.tmLanguage" 19 | }] 20 | } 21 | } -------------------------------------------------------------------------------- /syntaxes/logos.tmLanguage: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | fileTypes 6 | 7 | xm 8 | x 9 | xi 10 | xmi 11 | 12 | name 13 | Logos 14 | patterns 15 | 16 | 17 | match 18 | %(init|hook|subclass|group|class|new|ctor|dtor|end|config|orig|log) 19 | name 20 | keyword.source.logos 21 | 22 | 23 | captures 24 | 25 | 1 26 | 27 | name 28 | keyword.source.logos 29 | 30 | 31 | match 32 | %c\(([A-Za-z$_]+)\) 33 | 34 | 35 | include 36 | source.objc 37 | 38 | 39 | include 40 | source.c++ 41 | 42 | 43 | scopeName 44 | source.logos 45 | uuid 46 | 168b905c-d157-40e3-ae1d-3a79f5326ace 47 | 48 | 49 | --------------------------------------------------------------------------------