Plugin Directory

Changeset 1162384


Ignore:
Timestamp:
05/18/2015 01:23:55 AM (11 years ago)
Author:
knarfalingus
Message:

Added support for Typescript 1.5, licensing updates.

Location:
syntax-highlighter-evolved-typescript/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • syntax-highlighter-evolved-typescript/trunk/license.txt

    r934080 r1162384  
    22by Knarfalingus (https://www.knarfalingus.com/)
    33
    4 Copyright 2014 by Knarfalingus
     4-=-=-=-=   GPL License -=-=-=-=
     5
     6Copyright 2014-2015 by Knarfalingus
    57
    68This program is free software; you can redistribute it and/or modify
    79it under the terms of the GNU General Public License as published by
    8 the Free Software Foundation; either version 2 of the License, or
     10the Free Software Foundation; either version 3 of the License, or
    911(at your option) any later version.
    1012
     
    694696Public License instead of this License.  But first, please read
    695697<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  
    33Tags: syntaxhighlighting, typescript
    44Requires at least: 2.7
    5 Tested up to: 4.1.2
    6 Stable tag: 1.0.2
    7 License: GPLv3
     5Tested up to: 4.2.2
     6Stable tag: 1.5.0
     7License: dual - GPLv3 or MIT
    88License URI: http://www.gnu.org/licenses/gpl-3.0.txt
    99
     
    1818== Changelog ==
    1919
    20 = 0.1 =
     20= 1.0.1 =
    2121* 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  
    77 *
    88 * @version
    9  * 1.0.0 (Wed, 31 May 2014)
     9 * 1.4.9 (Sun, 10 May 2015)
    1010 *
    1111 * @copyright
    12  * TypeScript brush Copyright (C) 2014 Knarf P. Lingus.
     12 * TypeScript brush Copyright (C) 2014-2015 Knarf P. Lingus.
    1313 *
    1414 * @license
     
    1818SyntaxHighlighter.brushes.TypeScript = function()
    1919{
    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   
    2635
    2736        var r = SyntaxHighlighter.regexLib;
    2837       
    2938        this.regexList = [
     39            { regex: /&gt;/,                                        css: 'color1' },            // apparently need this to prevent &gt; replace??
     40                                                                                                // I think my highlighting of > triggers this somehow
     41            { regex: /&amp;/,                                       css: 'color1' },            // ditto
     42            { regex: /&lt;/,                                        css: 'color1' },            // ditto
     43            { regex: /\s*\/\/#(region|endregion).*/gm,              css: 'script' },            // preprocessor tags like #region and #endregion (Web Essentials)
    3044            { regex: r.multiLineDoubleQuotedString,                 css: 'string' },            // double quoted strings
    3145            { regex: r.multiLineSingleQuotedString,                 css: 'string' },            // single quoted strings
    3246            { 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
    3551            { regex: new RegExp(this.getKeywords(keywords), 'gm'),  css: 'keyword' }            // keywords
    3652            ];
    3753   
    38         //this.forHtmlScript(r.scriptScriptTags);
    3954};
    4055 
  • syntax-highlighter-evolved-typescript/trunk/syntaxhighlighter_typescript.php

    r934083 r1162384  
    44Plugin Name: SyntaxHighlighter Evolved: TypeScript Brush
    55Description: Adds support for the TypeScript language to the SyntaxHighlighter Evolved plugin.
    6 Version: 1.0.1
     6Version: 1.5.0
    77Author: KnarfaLingus
    88Author URI: https://www.knarfalingus.com/
    9 License: GPL2
     9License: GPL3 or MIT
    1010*/
    1111 
    12 /*  Copyright 2014 Knarfalingus  (email : [email protected] )
     12/* GPL License follows */
     13/*  Copyright 2014-2015 Knarfalingus  (email : [email protected] )
    1314
    1415    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, as
     16    it under the terms of the GNU General Public License, version 3, as
    1617    published by the Free Software Foundation.
    1718
     
    2627*/
    2728
     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*/
    2851
    2952
Note: See TracChangeset for help on using the changeset viewer.