Changeset 1162384
- Timestamp:
- 05/18/2015 01:23:55 AM (11 years ago)
- Location:
- syntax-highlighter-evolved-typescript/trunk
- Files:
-
- 4 edited
-
license.txt (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
shBrushTScript.js (modified) (2 diffs)
-
syntaxhighlighter_typescript.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
syntax-highlighter-evolved-typescript/trunk/license.txt
r934080 r1162384 2 2 by Knarfalingus (https://www.knarfalingus.com/) 3 3 4 Copyright 2014 by Knarfalingus 4 -=-=-=-= GPL License -=-=-=-= 5 6 Copyright 2014-2015 by Knarfalingus 5 7 6 8 This program is free software; you can redistribute it and/or modify 7 9 it under the terms of the GNU General Public License as published by 8 the Free Software Foundation; either version 2of the License, or10 the Free Software Foundation; either version 3 of the License, or 9 11 (at your option) any later version. 10 12 … … 694 696 Public License instead of this License. But first, please read 695 697 <http://www.gnu.org/philosophy/why-not-lgpl.html>. 698 699 -=-=-=-= MIT License -=-=-=-= 700 701 Copyright (c) 2015 Knarfalingus (email : [email protected] ) 702 703 Permission is hereby granted, free of charge, to any person obtaining a 704 copy of this software and associated documentation files (the "Software"), 705 to deal in the Software without restriction, including without limitation the 706 rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 707 sell copies of the Software, and to permit persons to whom the Software is 708 furnished to do so, subject to the following conditions: 709 710 The above copyright notice and this permission notice shall be included in all 711 copies or substantial portions of the Software. 712 713 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 714 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 715 FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 716 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 717 IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 718 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 719 -
syntax-highlighter-evolved-typescript/trunk/readme.txt
r1141565 r1162384 3 3 Tags: syntaxhighlighting, typescript 4 4 Requires at least: 2.7 5 Tested up to: 4. 1.26 Stable tag: 1. 0.27 License: GPLv35 Tested up to: 4.2.2 6 Stable tag: 1.5.0 7 License: dual - GPLv3 or MIT 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.txt 9 9 … … 18 18 == Changelog == 19 19 20 = 0.1 =20 = 1.0.1 = 21 21 * Initial Version 22 23 = 1.5.0 = 24 * Reworked to support Typescript 1.5 25 * Added hilighting for operators, separators, parens etc 26 * Updated licensing in files to clarify GPL as being v3, added MIT option 27 * Added support for custom regions (Web Essentials http://vswebessentials.com/features/typescript) -
syntax-highlighter-evolved-typescript/trunk/shBrushTScript.js
r934080 r1162384 7 7 * 8 8 * @version 9 * 1. 0.0 (Wed, 31 May 2014)9 * 1.4.9 (Sun, 10 May 2015) 10 10 * 11 11 * @copyright 12 * TypeScript brush Copyright (C) 2014 Knarf P. Lingus.12 * TypeScript brush Copyright (C) 2014-2015 Knarf P. Lingus. 13 13 * 14 14 * @license … … 18 18 SyntaxHighlighter.brushes.TypeScript = function() 19 19 { 20 var keywords = 'any abstract boolean break case catch class const constructor continue ' + 21 'debugger default delete do else enum export extends false ' + 22 'finally for foreach function if implements import in instanceof ' + 23 'interface let module new null number package private protected ' + 24 'public require return static string super switch ' + 25 'this throw true try typeof var void while with yield'; 20 // reserved words ECMAscript 6, removed older ECMAscript reserved keywords (abstract, constructor etc) 21 var keywords = 'break case catch class const continue debugger default delete do else ' 22 + 'export extends finally for function if import in instanceof let new ' 23 + 'return super switch this throw try typeof var void while with yield ' 24 // future reserved 25 + 'await enum ' 26 // future reserved strict mode 27 + 'implements interface package private protected public static ' 28 // literals 29 + 'false null true ' 30 // Typescript 1.5 beta - anything in scanner.ts that is not in above.... 31 + 'any as Array boolean constructor declare from get module namespace number of require set static string symbol type'; 32 33 34 var chars 26 35 27 36 var r = SyntaxHighlighter.regexLib; 28 37 29 38 this.regexList = [ 39 { regex: />/, css: 'color1' }, // apparently need this to prevent > replace?? 40 // I think my highlighting of > triggers this somehow 41 { regex: /&/, css: 'color1' }, // ditto 42 { regex: /</, css: 'color1' }, // ditto 43 { regex: /\s*\/\/#(region|endregion).*/gm, css: 'script' }, // preprocessor tags like #region and #endregion (Web Essentials) 30 44 { regex: r.multiLineDoubleQuotedString, css: 'string' }, // double quoted strings 31 45 { regex: r.multiLineSingleQuotedString, css: 'string' }, // single quoted strings 32 46 { regex: r.singleLineCComments, css: 'comments' }, // one line comments 33 { regex: r.multiLineCComments, css: 'comments' }, // multiline comments 34 { regex: /\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion 47 { regex: r.multiLineCComments, css: 'comments' }, // multi-line comments 48 { regex: /\s*@[a-zA-Z_$][a-zA-Z_$0-9]*/gm, css: 'color3' }, // TypeScript 1.5, ES7 decorators 49 { regex: /(;|\(|\)|\[|\]|\.|{|})/gm, css: 'color1' }, // highlight square & squiggly brackets, parentheses, dots and parentheses 50 { regex: /(%|\/|\+|\-|\*|=|,|:|\||&|\!|\<|\>|~|\^)/gm, css: 'color1' }, // highlight operators&separators etc 35 51 { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keywords 36 52 ]; 37 53 38 //this.forHtmlScript(r.scriptScriptTags);39 54 }; 40 55 -
syntax-highlighter-evolved-typescript/trunk/syntaxhighlighter_typescript.php
r934083 r1162384 4 4 Plugin Name: SyntaxHighlighter Evolved: TypeScript Brush 5 5 Description: Adds support for the TypeScript language to the SyntaxHighlighter Evolved plugin. 6 Version: 1. 0.16 Version: 1.5.0 7 7 Author: KnarfaLingus 8 8 Author URI: https://www.knarfalingus.com/ 9 License: GPL 29 License: GPL3 or MIT 10 10 */ 11 11 12 /* Copyright 2014 Knarfalingus (email : [email protected] ) 12 /* GPL License follows */ 13 /* Copyright 2014-2015 Knarfalingus (email : [email protected] ) 13 14 14 15 This program is free software; you can redistribute it and/or modify 15 it under the terms of the GNU General Public License, version 2, as16 it under the terms of the GNU General Public License, version 3, as 16 17 published by the Free Software Foundation. 17 18 … … 26 27 */ 27 28 29 /* MIT license follows */ 30 /* 31 Copyright (c) 2015 Knarfalingus (email : [email protected] ) 32 33 Permission is hereby granted, free of charge, to any person obtaining a 34 copy of this software and associated documentation files (the "Software"), 35 to deal in the Software without restriction, including without limitation the 36 rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 37 sell copies of the Software, and to permit persons to whom the Software is 38 furnished to do so, subject to the following conditions: 39 40 The above copyright notice and this permission notice shall be included in all 41 copies or substantial portions of the Software. 42 43 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 44 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 45 FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 46 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 47 IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 48 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 49 50 */ 28 51 29 52
Note: See TracChangeset
for help on using the changeset viewer.