From 0201b87b323e1e1f45b34ca942f9b5ad4bc5a783 Mon Sep 17 00:00:00 2001 From: sweetppro Date: Sun, 3 May 2020 14:33:33 +0200 Subject: [PATCH 01/10] Create rails-log.js modified the ruby.js language to provide better syntax highlighting for Rails Unicorn logging. --- src/languages/rails-log.js | 252 +++++++++++++++++++++++++++++++++++++ 1 file changed, 252 insertions(+) create mode 100755 src/languages/rails-log.js diff --git a/src/languages/rails-log.js b/src/languages/rails-log.js new file mode 100755 index 0000000000..fbfbbcf9d7 --- /dev/null +++ b/src/languages/rails-log.js @@ -0,0 +1,252 @@ +/* +Language: Rails Unicorn Logging +Description: Mod of the Ruby language pack for better Unicorn logging syntax highlighting. +Website: https://www.ruby-lang.org/ +Author: Russell Gray +Contributors: Anton Kovalyov Peter Leonov , Vasily Polovnyov , Loren Segal , Pascal Hurni , Cedric Sohrauer +Category: common +*/ + +export default function (hljs) { + var RUBY_METHOD_RE = '[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?'; + var RUBY_KEYWORDS = { + keyword: 'and then defined module in return redo if BEGIN retry end for self when ' + + 'next until do begin unless END rescue else break undef not super class case ' + + 'require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor ' + + 'Rendering Rendered Completed Started POST Processing by Redirected to Delivered mail Performed GET', + literal: 'true false nil' + }; + var YARDOCTAG = { + className: 'doctag', + begin: '@[A-Za-z]+' + }; + var IRB_OBJECT = { + begin: '#<', + end: '>' + }; + var COMMENT_MODES = [ + hljs.COMMENT( + '#', + '$', { + contains: [YARDOCTAG] + } + ), + hljs.COMMENT( + '^\\=begin', + '^\\=end', { + contains: [YARDOCTAG], + relevance: 10 + } + ), + hljs.COMMENT('^__END__', '\\n$') + ]; + var SUBST = { + className: 'subst', + begin: '#\\{', + end: '}', + keywords: RUBY_KEYWORDS + }; + var STRING = { + className: 'string', + contains: [hljs.BACKSLASH_ESCAPE, SUBST], + variants: [{ + begin: /'/, + end: /'|\n/ + }, + { + begin: /"/, + end: /"|\n/ + }, + { + begin: /`/, + end: /`|'|\n/ + }, + { + begin: '%[qQwWx]?\\(', + end: '\\)' + }, + { + begin: '%[qQwWx]?\\[', + end: '\\]' + }, + { + begin: '%[qQwWx]?{', + end: '}' + }, + { + begin: '%[qQwWx]?<', + end: '>' + }, + { + begin: '%[qQwWx]?/', + end: '/' + }, + { + begin: '%[qQwWx]?%', + end: '%' + }, + { + begin: '%[qQwWx]?-', + end: '-' + }, + { + begin: '%[qQwWx]?\\|', + end: '\\|' + }, + { + // \B in the beginning suppresses recognition of ?-sequences where ? + // is the last character of a preceding identifier, as in: `func?4` + begin: /\B\?(\\\d{1,3}|\\x[A-Fa-f0-9]{1,2}|\\u[A-Fa-f0-9]{4}|\\?\S)\b/ + }, + { // heredocs + begin: /<<[-~]?'?(\w+)(?:.|\n)*?\n\s*\1\b/, + returnBegin: true, + contains: [{ + begin: /<<[-~]?'?/ + }, + { + begin: /\w+/, + endSameAsBegin: true, + contains: [hljs.BACKSLASH_ESCAPE, SUBST], + } + ] + } + ] + }; + var PARAMS = { + className: 'params', + begin: '\\(', + end: '\\)', + endsParent: true, + keywords: RUBY_KEYWORDS + }; + + var RUBY_DEFAULT_CONTAINS = [ + STRING, + IRB_OBJECT, + { + className: 'class', + beginKeywords: 'class module', + end: '$|;', + illegal: /=/, + contains: [ + hljs.inherit(hljs.TITLE_MODE, { + begin: '[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?' + }), + { + begin: '<\\s*', + contains: [{ + begin: '(' + hljs.IDENT_RE + '::)?' + hljs.IDENT_RE + }] + } + ].concat(COMMENT_MODES) + }, + { + className: 'function', + beginKeywords: 'def', + end: '$|;', + contains: [ + hljs.inherit(hljs.TITLE_MODE, { + begin: RUBY_METHOD_RE + }), + PARAMS + ].concat(COMMENT_MODES) + }, + { + // swallow namespace qualifiers before symbols + begin: hljs.IDENT_RE + '::' + }, + { + className: 'symbol', + begin: hljs.UNDERSCORE_IDENT_RE + '(\\!|\\?)?:', + relevance: 0 + }, + { + className: 'symbol', + begin: ':(?!\\s)', + contains: [STRING, { + begin: RUBY_METHOD_RE + }], + relevance: 0 + }, + { + className: 'number', + begin: '(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b', + relevance: 0 + }, + { + begin: '(\\$\\W)|((\\$|\\@\\@?)(\\w+))' // variables + }, + { + className: 'comment', + begin: '\\[(?!([0-9]*m|\\[|"))', + end: "]|\\n" + }, + { // regexp container + begin: '(' + hljs.RE_STARTERS_RE + '|unless)\\s*', + keywords: 'unless', + contains: [ + IRB_OBJECT, + { + className: 'regexp', + contains: [hljs.BACKSLASH_ESCAPE, SUBST], + illegal: /\n/, + variants: [{ + begin: '/', + end: '/[a-z]*' + }, + { + begin: '%r{', + end: '}[a-z]*' + }, + { + begin: '%r\\(', + end: '\\)[a-z]*' + }, + { + begin: '%r!', + end: '![a-z]*' + }, + { + begin: '%r\\[', + end: '\\][a-z]*' + } + ] + } + ].concat(COMMENT_MODES), + relevance: 0 + } + ].concat(COMMENT_MODES); + + SUBST.contains = RUBY_DEFAULT_CONTAINS; + PARAMS.contains = RUBY_DEFAULT_CONTAINS; + + var SIMPLE_PROMPT = "[>?]>"; + var DEFAULT_PROMPT = "[\\w#]+\\(\\w+\\):\\d+:\\d+>"; + var RVM_PROMPT = "(\\w+-)?\\d+\\.\\d+\\.\\d(p\\d+)?[^>]+>"; + + var IRB_DEFAULT = [{ + begin: /^\s*=>/, + starts: { + end: '$', + contains: RUBY_DEFAULT_CONTAINS + } + }, + { + className: 'meta', + begin: '^(' + SIMPLE_PROMPT + "|" + DEFAULT_PROMPT + '|' + RVM_PROMPT + ')', + starts: { + end: '$', + contains: RUBY_DEFAULT_CONTAINS + } + } + ]; + + return { + name: 'Rails log', + aliases: ['rb', 'gemspec', 'podspec', 'thor', 'irb'], + keywords: RUBY_KEYWORDS, + illegal: /\/\*/, + contains: COMMENT_MODES.concat(IRB_DEFAULT).concat(RUBY_DEFAULT_CONTAINS) + }; +} \ No newline at end of file From 45e06bad0324ff67654c039d2e38c68e21ba8ff5 Mon Sep 17 00:00:00 2001 From: sweetppro Date: Sun, 3 May 2020 15:07:32 +0200 Subject: [PATCH 02/10] Update rails-log.js fixed an issue with string definitions --- src/languages/rails-log.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/languages/rails-log.js b/src/languages/rails-log.js index fbfbbcf9d7..0379a2bb5a 100755 --- a/src/languages/rails-log.js +++ b/src/languages/rails-log.js @@ -50,6 +50,10 @@ export default function (hljs) { className: 'string', contains: [hljs.BACKSLASH_ESCAPE, SUBST], variants: [{ + begin: /\//, + end: /\/|\n/ + }, + { begin: /'/, end: /'|\n/ }, From e5f2ed60204776b209bc9457740d90f4305b830b Mon Sep 17 00:00:00 2001 From: sweetppro Date: Sun, 3 May 2020 22:32:56 +0200 Subject: [PATCH 03/10] Update rails-log.js improved string parsing --- src/languages/rails-log.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/languages/rails-log.js b/src/languages/rails-log.js index 0379a2bb5a..0ec539db04 100755 --- a/src/languages/rails-log.js +++ b/src/languages/rails-log.js @@ -50,10 +50,6 @@ export default function (hljs) { className: 'string', contains: [hljs.BACKSLASH_ESCAPE, SUBST], variants: [{ - begin: /\//, - end: /\/|\n/ - }, - { begin: /'/, end: /'|\n/ }, @@ -196,10 +192,6 @@ export default function (hljs) { contains: [hljs.BACKSLASH_ESCAPE, SUBST], illegal: /\n/, variants: [{ - begin: '/', - end: '/[a-z]*' - }, - { begin: '%r{', end: '}[a-z]*' }, From de04d72152d40a24d409b0c116d801b45f3b0388 Mon Sep 17 00:00:00 2001 From: sweetppro Date: Sun, 3 May 2020 23:12:58 +0200 Subject: [PATCH 04/10] Delete rails-log.js --- src/languages/rails-log.js | 248 ------------------------------------- 1 file changed, 248 deletions(-) delete mode 100755 src/languages/rails-log.js diff --git a/src/languages/rails-log.js b/src/languages/rails-log.js deleted file mode 100755 index 0ec539db04..0000000000 --- a/src/languages/rails-log.js +++ /dev/null @@ -1,248 +0,0 @@ -/* -Language: Rails Unicorn Logging -Description: Mod of the Ruby language pack for better Unicorn logging syntax highlighting. -Website: https://www.ruby-lang.org/ -Author: Russell Gray -Contributors: Anton Kovalyov Peter Leonov , Vasily Polovnyov , Loren Segal , Pascal Hurni , Cedric Sohrauer -Category: common -*/ - -export default function (hljs) { - var RUBY_METHOD_RE = '[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?'; - var RUBY_KEYWORDS = { - keyword: 'and then defined module in return redo if BEGIN retry end for self when ' + - 'next until do begin unless END rescue else break undef not super class case ' + - 'require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor ' + - 'Rendering Rendered Completed Started POST Processing by Redirected to Delivered mail Performed GET', - literal: 'true false nil' - }; - var YARDOCTAG = { - className: 'doctag', - begin: '@[A-Za-z]+' - }; - var IRB_OBJECT = { - begin: '#<', - end: '>' - }; - var COMMENT_MODES = [ - hljs.COMMENT( - '#', - '$', { - contains: [YARDOCTAG] - } - ), - hljs.COMMENT( - '^\\=begin', - '^\\=end', { - contains: [YARDOCTAG], - relevance: 10 - } - ), - hljs.COMMENT('^__END__', '\\n$') - ]; - var SUBST = { - className: 'subst', - begin: '#\\{', - end: '}', - keywords: RUBY_KEYWORDS - }; - var STRING = { - className: 'string', - contains: [hljs.BACKSLASH_ESCAPE, SUBST], - variants: [{ - begin: /'/, - end: /'|\n/ - }, - { - begin: /"/, - end: /"|\n/ - }, - { - begin: /`/, - end: /`|'|\n/ - }, - { - begin: '%[qQwWx]?\\(', - end: '\\)' - }, - { - begin: '%[qQwWx]?\\[', - end: '\\]' - }, - { - begin: '%[qQwWx]?{', - end: '}' - }, - { - begin: '%[qQwWx]?<', - end: '>' - }, - { - begin: '%[qQwWx]?/', - end: '/' - }, - { - begin: '%[qQwWx]?%', - end: '%' - }, - { - begin: '%[qQwWx]?-', - end: '-' - }, - { - begin: '%[qQwWx]?\\|', - end: '\\|' - }, - { - // \B in the beginning suppresses recognition of ?-sequences where ? - // is the last character of a preceding identifier, as in: `func?4` - begin: /\B\?(\\\d{1,3}|\\x[A-Fa-f0-9]{1,2}|\\u[A-Fa-f0-9]{4}|\\?\S)\b/ - }, - { // heredocs - begin: /<<[-~]?'?(\w+)(?:.|\n)*?\n\s*\1\b/, - returnBegin: true, - contains: [{ - begin: /<<[-~]?'?/ - }, - { - begin: /\w+/, - endSameAsBegin: true, - contains: [hljs.BACKSLASH_ESCAPE, SUBST], - } - ] - } - ] - }; - var PARAMS = { - className: 'params', - begin: '\\(', - end: '\\)', - endsParent: true, - keywords: RUBY_KEYWORDS - }; - - var RUBY_DEFAULT_CONTAINS = [ - STRING, - IRB_OBJECT, - { - className: 'class', - beginKeywords: 'class module', - end: '$|;', - illegal: /=/, - contains: [ - hljs.inherit(hljs.TITLE_MODE, { - begin: '[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?' - }), - { - begin: '<\\s*', - contains: [{ - begin: '(' + hljs.IDENT_RE + '::)?' + hljs.IDENT_RE - }] - } - ].concat(COMMENT_MODES) - }, - { - className: 'function', - beginKeywords: 'def', - end: '$|;', - contains: [ - hljs.inherit(hljs.TITLE_MODE, { - begin: RUBY_METHOD_RE - }), - PARAMS - ].concat(COMMENT_MODES) - }, - { - // swallow namespace qualifiers before symbols - begin: hljs.IDENT_RE + '::' - }, - { - className: 'symbol', - begin: hljs.UNDERSCORE_IDENT_RE + '(\\!|\\?)?:', - relevance: 0 - }, - { - className: 'symbol', - begin: ':(?!\\s)', - contains: [STRING, { - begin: RUBY_METHOD_RE - }], - relevance: 0 - }, - { - className: 'number', - begin: '(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b', - relevance: 0 - }, - { - begin: '(\\$\\W)|((\\$|\\@\\@?)(\\w+))' // variables - }, - { - className: 'comment', - begin: '\\[(?!([0-9]*m|\\[|"))', - end: "]|\\n" - }, - { // regexp container - begin: '(' + hljs.RE_STARTERS_RE + '|unless)\\s*', - keywords: 'unless', - contains: [ - IRB_OBJECT, - { - className: 'regexp', - contains: [hljs.BACKSLASH_ESCAPE, SUBST], - illegal: /\n/, - variants: [{ - begin: '%r{', - end: '}[a-z]*' - }, - { - begin: '%r\\(', - end: '\\)[a-z]*' - }, - { - begin: '%r!', - end: '![a-z]*' - }, - { - begin: '%r\\[', - end: '\\][a-z]*' - } - ] - } - ].concat(COMMENT_MODES), - relevance: 0 - } - ].concat(COMMENT_MODES); - - SUBST.contains = RUBY_DEFAULT_CONTAINS; - PARAMS.contains = RUBY_DEFAULT_CONTAINS; - - var SIMPLE_PROMPT = "[>?]>"; - var DEFAULT_PROMPT = "[\\w#]+\\(\\w+\\):\\d+:\\d+>"; - var RVM_PROMPT = "(\\w+-)?\\d+\\.\\d+\\.\\d(p\\d+)?[^>]+>"; - - var IRB_DEFAULT = [{ - begin: /^\s*=>/, - starts: { - end: '$', - contains: RUBY_DEFAULT_CONTAINS - } - }, - { - className: 'meta', - begin: '^(' + SIMPLE_PROMPT + "|" + DEFAULT_PROMPT + '|' + RVM_PROMPT + ')', - starts: { - end: '$', - contains: RUBY_DEFAULT_CONTAINS - } - } - ]; - - return { - name: 'Rails log', - aliases: ['rb', 'gemspec', 'podspec', 'thor', 'irb'], - keywords: RUBY_KEYWORDS, - illegal: /\/\*/, - contains: COMMENT_MODES.concat(IRB_DEFAULT).concat(RUBY_DEFAULT_CONTAINS) - }; -} \ No newline at end of file From a0e66546a37e259ba01d97f1de4cd76183c65d43 Mon Sep 17 00:00:00 2001 From: sweetppro Date: Sun, 3 May 2020 23:41:34 +0200 Subject: [PATCH 05/10] added rails log as an extra language a modified ruby.js language definition to provide better syntax highlighting for Rails Unicorn logging. --- extra/rails-log/LICENSE | 29 +++ extra/rails-log/dist/rails-log.min.js | 1 + extra/rails-log/src/languages/rails-log.js | 248 +++++++++++++++++++++ 3 files changed, 278 insertions(+) create mode 100644 extra/rails-log/LICENSE create mode 100644 extra/rails-log/dist/rails-log.min.js create mode 100755 extra/rails-log/src/languages/rails-log.js diff --git a/extra/rails-log/LICENSE b/extra/rails-log/LICENSE new file mode 100644 index 0000000000..2250cc7eca --- /dev/null +++ b/extra/rails-log/LICENSE @@ -0,0 +1,29 @@ +BSD 3-Clause License + +Copyright (c) 2006, Ivan Sagalaev. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/extra/rails-log/dist/rails-log.min.js b/extra/rails-log/dist/rails-log.min.js new file mode 100644 index 0000000000..cf18e14c4f --- /dev/null +++ b/extra/rails-log/dist/rails-log.min.js @@ -0,0 +1 @@ +hljs.registerLanguage("rails-log",function(){"use strict";return function(e){var n="[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",a={keyword:"and then defined module in return redo if BEGIN retry end for self when next until do begin unless END rescue else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor Rendering Rendered Completed Started POST Processing by Redirected to Delivered mail Performed GET",literal:"true false nil"},s={className:"doctag",begin:"@[A-Za-z]+"},i={begin:"#<",end:">"},r=[e.COMMENT("#","$",{contains:[s]}),e.COMMENT("^\\=begin","^\\=end",{contains:[s],relevance:10}),e.COMMENT("^__END__","\\n$")],t={className:"subst",begin:"#\\{",end:"}",keywords:a},d={className:"string",contains:[e.BACKSLASH_ESCAPE,t],variants:[{begin:/'/,end:/'|\n/},{begin:/"/,end:/"|\n/},{begin:/`/,end:/`|'|\n/},{begin:"%[qQwWx]?\\(",end:"\\)"},{begin:"%[qQwWx]?\\[",end:"\\]"},{begin:"%[qQwWx]?{",end:"}"},{begin:"%[qQwWx]?<",end:">"},{begin:"%[qQwWx]?/",end:"/"},{begin:"%[qQwWx]?%",end:"%"},{begin:"%[qQwWx]?-",end:"-"},{begin:"%[qQwWx]?\\|",end:"\\|"},{begin:/\B\?(\\\d{1,3}|\\x[A-Fa-f0-9]{1,2}|\\u[A-Fa-f0-9]{4}|\\?\S)\b/},{begin:/<<[-~]?'?(\w+)(?:.|\n)*?\n\s*\1\b/,returnBegin:!0,contains:[{begin:/<<[-~]?'?/},{begin:/\w+/,endSameAsBegin:!0,contains:[e.BACKSLASH_ESCAPE,t]}]}]},c={className:"params",begin:"\\(",end:"\\)",endsParent:!0,keywords:a},g=[d,i,{className:"class",beginKeywords:"class module",end:"$|;",illegal:/=/,contains:[e.inherit(e.TITLE_MODE,{begin:"[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?"}),{begin:"<\\s*",contains:[{begin:"("+e.IDENT_RE+"::)?"+e.IDENT_RE}]}].concat(r)},{className:"function",beginKeywords:"def",end:"$|;",contains:[e.inherit(e.TITLE_MODE,{begin:n}),c].concat(r)},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(\\!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[d,{begin:n}],relevance:0},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\$\\W)|((\\$|\\@\\@?)(\\w+))"},{className:"comment",begin:'\\[(?!([0-9]*m|\\[|"))',end:"]|\\n"},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[i,{className:"regexp",contains:[e.BACKSLASH_ESCAPE,t],illegal:/\n/,variants:[{begin:"%r{",end:"}[a-z]*"},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(r),relevance:0}].concat(r);t.contains=g,c.contains=g;var l=[{begin:/^\s*=>/,starts:{end:"$",contains:g}},{className:"meta",begin:"^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+>|(\\w+-)?\\d+\\.\\d+\\.\\d(p\\d+)?[^>]+>)",starts:{end:"$",contains:g}}];return{name:"Rails log",aliases:["rb","gemspec","podspec","thor","irb"],keywords:a,illegal:/\/\*/,contains:r.concat(l).concat(g)}}}()); \ No newline at end of file diff --git a/extra/rails-log/src/languages/rails-log.js b/extra/rails-log/src/languages/rails-log.js new file mode 100755 index 0000000000..0ec539db04 --- /dev/null +++ b/extra/rails-log/src/languages/rails-log.js @@ -0,0 +1,248 @@ +/* +Language: Rails Unicorn Logging +Description: Mod of the Ruby language pack for better Unicorn logging syntax highlighting. +Website: https://www.ruby-lang.org/ +Author: Russell Gray +Contributors: Anton Kovalyov Peter Leonov , Vasily Polovnyov , Loren Segal , Pascal Hurni , Cedric Sohrauer +Category: common +*/ + +export default function (hljs) { + var RUBY_METHOD_RE = '[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?'; + var RUBY_KEYWORDS = { + keyword: 'and then defined module in return redo if BEGIN retry end for self when ' + + 'next until do begin unless END rescue else break undef not super class case ' + + 'require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor ' + + 'Rendering Rendered Completed Started POST Processing by Redirected to Delivered mail Performed GET', + literal: 'true false nil' + }; + var YARDOCTAG = { + className: 'doctag', + begin: '@[A-Za-z]+' + }; + var IRB_OBJECT = { + begin: '#<', + end: '>' + }; + var COMMENT_MODES = [ + hljs.COMMENT( + '#', + '$', { + contains: [YARDOCTAG] + } + ), + hljs.COMMENT( + '^\\=begin', + '^\\=end', { + contains: [YARDOCTAG], + relevance: 10 + } + ), + hljs.COMMENT('^__END__', '\\n$') + ]; + var SUBST = { + className: 'subst', + begin: '#\\{', + end: '}', + keywords: RUBY_KEYWORDS + }; + var STRING = { + className: 'string', + contains: [hljs.BACKSLASH_ESCAPE, SUBST], + variants: [{ + begin: /'/, + end: /'|\n/ + }, + { + begin: /"/, + end: /"|\n/ + }, + { + begin: /`/, + end: /`|'|\n/ + }, + { + begin: '%[qQwWx]?\\(', + end: '\\)' + }, + { + begin: '%[qQwWx]?\\[', + end: '\\]' + }, + { + begin: '%[qQwWx]?{', + end: '}' + }, + { + begin: '%[qQwWx]?<', + end: '>' + }, + { + begin: '%[qQwWx]?/', + end: '/' + }, + { + begin: '%[qQwWx]?%', + end: '%' + }, + { + begin: '%[qQwWx]?-', + end: '-' + }, + { + begin: '%[qQwWx]?\\|', + end: '\\|' + }, + { + // \B in the beginning suppresses recognition of ?-sequences where ? + // is the last character of a preceding identifier, as in: `func?4` + begin: /\B\?(\\\d{1,3}|\\x[A-Fa-f0-9]{1,2}|\\u[A-Fa-f0-9]{4}|\\?\S)\b/ + }, + { // heredocs + begin: /<<[-~]?'?(\w+)(?:.|\n)*?\n\s*\1\b/, + returnBegin: true, + contains: [{ + begin: /<<[-~]?'?/ + }, + { + begin: /\w+/, + endSameAsBegin: true, + contains: [hljs.BACKSLASH_ESCAPE, SUBST], + } + ] + } + ] + }; + var PARAMS = { + className: 'params', + begin: '\\(', + end: '\\)', + endsParent: true, + keywords: RUBY_KEYWORDS + }; + + var RUBY_DEFAULT_CONTAINS = [ + STRING, + IRB_OBJECT, + { + className: 'class', + beginKeywords: 'class module', + end: '$|;', + illegal: /=/, + contains: [ + hljs.inherit(hljs.TITLE_MODE, { + begin: '[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?' + }), + { + begin: '<\\s*', + contains: [{ + begin: '(' + hljs.IDENT_RE + '::)?' + hljs.IDENT_RE + }] + } + ].concat(COMMENT_MODES) + }, + { + className: 'function', + beginKeywords: 'def', + end: '$|;', + contains: [ + hljs.inherit(hljs.TITLE_MODE, { + begin: RUBY_METHOD_RE + }), + PARAMS + ].concat(COMMENT_MODES) + }, + { + // swallow namespace qualifiers before symbols + begin: hljs.IDENT_RE + '::' + }, + { + className: 'symbol', + begin: hljs.UNDERSCORE_IDENT_RE + '(\\!|\\?)?:', + relevance: 0 + }, + { + className: 'symbol', + begin: ':(?!\\s)', + contains: [STRING, { + begin: RUBY_METHOD_RE + }], + relevance: 0 + }, + { + className: 'number', + begin: '(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b', + relevance: 0 + }, + { + begin: '(\\$\\W)|((\\$|\\@\\@?)(\\w+))' // variables + }, + { + className: 'comment', + begin: '\\[(?!([0-9]*m|\\[|"))', + end: "]|\\n" + }, + { // regexp container + begin: '(' + hljs.RE_STARTERS_RE + '|unless)\\s*', + keywords: 'unless', + contains: [ + IRB_OBJECT, + { + className: 'regexp', + contains: [hljs.BACKSLASH_ESCAPE, SUBST], + illegal: /\n/, + variants: [{ + begin: '%r{', + end: '}[a-z]*' + }, + { + begin: '%r\\(', + end: '\\)[a-z]*' + }, + { + begin: '%r!', + end: '![a-z]*' + }, + { + begin: '%r\\[', + end: '\\][a-z]*' + } + ] + } + ].concat(COMMENT_MODES), + relevance: 0 + } + ].concat(COMMENT_MODES); + + SUBST.contains = RUBY_DEFAULT_CONTAINS; + PARAMS.contains = RUBY_DEFAULT_CONTAINS; + + var SIMPLE_PROMPT = "[>?]>"; + var DEFAULT_PROMPT = "[\\w#]+\\(\\w+\\):\\d+:\\d+>"; + var RVM_PROMPT = "(\\w+-)?\\d+\\.\\d+\\.\\d(p\\d+)?[^>]+>"; + + var IRB_DEFAULT = [{ + begin: /^\s*=>/, + starts: { + end: '$', + contains: RUBY_DEFAULT_CONTAINS + } + }, + { + className: 'meta', + begin: '^(' + SIMPLE_PROMPT + "|" + DEFAULT_PROMPT + '|' + RVM_PROMPT + ')', + starts: { + end: '$', + contains: RUBY_DEFAULT_CONTAINS + } + } + ]; + + return { + name: 'Rails log', + aliases: ['rb', 'gemspec', 'podspec', 'thor', 'irb'], + keywords: RUBY_KEYWORDS, + illegal: /\/\*/, + contains: COMMENT_MODES.concat(IRB_DEFAULT).concat(RUBY_DEFAULT_CONTAINS) + }; +} \ No newline at end of file From fd40e470147904173a0321b326ede7c14512f2d6 Mon Sep 17 00:00:00 2001 From: sweetppro Date: Sun, 3 May 2020 23:50:00 +0200 Subject: [PATCH 06/10] oops --- extra/rails-log/LICENSE | 29 --- extra/rails-log/dist/rails-log.min.js | 1 - extra/rails-log/src/languages/rails-log.js | 248 --------------------- 3 files changed, 278 deletions(-) delete mode 100644 extra/rails-log/LICENSE delete mode 100644 extra/rails-log/dist/rails-log.min.js delete mode 100755 extra/rails-log/src/languages/rails-log.js diff --git a/extra/rails-log/LICENSE b/extra/rails-log/LICENSE deleted file mode 100644 index 2250cc7eca..0000000000 --- a/extra/rails-log/LICENSE +++ /dev/null @@ -1,29 +0,0 @@ -BSD 3-Clause License - -Copyright (c) 2006, Ivan Sagalaev. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -* Neither the name of the copyright holder nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/extra/rails-log/dist/rails-log.min.js b/extra/rails-log/dist/rails-log.min.js deleted file mode 100644 index cf18e14c4f..0000000000 --- a/extra/rails-log/dist/rails-log.min.js +++ /dev/null @@ -1 +0,0 @@ -hljs.registerLanguage("rails-log",function(){"use strict";return function(e){var n="[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",a={keyword:"and then defined module in return redo if BEGIN retry end for self when next until do begin unless END rescue else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor Rendering Rendered Completed Started POST Processing by Redirected to Delivered mail Performed GET",literal:"true false nil"},s={className:"doctag",begin:"@[A-Za-z]+"},i={begin:"#<",end:">"},r=[e.COMMENT("#","$",{contains:[s]}),e.COMMENT("^\\=begin","^\\=end",{contains:[s],relevance:10}),e.COMMENT("^__END__","\\n$")],t={className:"subst",begin:"#\\{",end:"}",keywords:a},d={className:"string",contains:[e.BACKSLASH_ESCAPE,t],variants:[{begin:/'/,end:/'|\n/},{begin:/"/,end:/"|\n/},{begin:/`/,end:/`|'|\n/},{begin:"%[qQwWx]?\\(",end:"\\)"},{begin:"%[qQwWx]?\\[",end:"\\]"},{begin:"%[qQwWx]?{",end:"}"},{begin:"%[qQwWx]?<",end:">"},{begin:"%[qQwWx]?/",end:"/"},{begin:"%[qQwWx]?%",end:"%"},{begin:"%[qQwWx]?-",end:"-"},{begin:"%[qQwWx]?\\|",end:"\\|"},{begin:/\B\?(\\\d{1,3}|\\x[A-Fa-f0-9]{1,2}|\\u[A-Fa-f0-9]{4}|\\?\S)\b/},{begin:/<<[-~]?'?(\w+)(?:.|\n)*?\n\s*\1\b/,returnBegin:!0,contains:[{begin:/<<[-~]?'?/},{begin:/\w+/,endSameAsBegin:!0,contains:[e.BACKSLASH_ESCAPE,t]}]}]},c={className:"params",begin:"\\(",end:"\\)",endsParent:!0,keywords:a},g=[d,i,{className:"class",beginKeywords:"class module",end:"$|;",illegal:/=/,contains:[e.inherit(e.TITLE_MODE,{begin:"[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?"}),{begin:"<\\s*",contains:[{begin:"("+e.IDENT_RE+"::)?"+e.IDENT_RE}]}].concat(r)},{className:"function",beginKeywords:"def",end:"$|;",contains:[e.inherit(e.TITLE_MODE,{begin:n}),c].concat(r)},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(\\!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[d,{begin:n}],relevance:0},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\$\\W)|((\\$|\\@\\@?)(\\w+))"},{className:"comment",begin:'\\[(?!([0-9]*m|\\[|"))',end:"]|\\n"},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[i,{className:"regexp",contains:[e.BACKSLASH_ESCAPE,t],illegal:/\n/,variants:[{begin:"%r{",end:"}[a-z]*"},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(r),relevance:0}].concat(r);t.contains=g,c.contains=g;var l=[{begin:/^\s*=>/,starts:{end:"$",contains:g}},{className:"meta",begin:"^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+>|(\\w+-)?\\d+\\.\\d+\\.\\d(p\\d+)?[^>]+>)",starts:{end:"$",contains:g}}];return{name:"Rails log",aliases:["rb","gemspec","podspec","thor","irb"],keywords:a,illegal:/\/\*/,contains:r.concat(l).concat(g)}}}()); \ No newline at end of file diff --git a/extra/rails-log/src/languages/rails-log.js b/extra/rails-log/src/languages/rails-log.js deleted file mode 100755 index 0ec539db04..0000000000 --- a/extra/rails-log/src/languages/rails-log.js +++ /dev/null @@ -1,248 +0,0 @@ -/* -Language: Rails Unicorn Logging -Description: Mod of the Ruby language pack for better Unicorn logging syntax highlighting. -Website: https://www.ruby-lang.org/ -Author: Russell Gray -Contributors: Anton Kovalyov Peter Leonov , Vasily Polovnyov , Loren Segal , Pascal Hurni , Cedric Sohrauer -Category: common -*/ - -export default function (hljs) { - var RUBY_METHOD_RE = '[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?'; - var RUBY_KEYWORDS = { - keyword: 'and then defined module in return redo if BEGIN retry end for self when ' + - 'next until do begin unless END rescue else break undef not super class case ' + - 'require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor ' + - 'Rendering Rendered Completed Started POST Processing by Redirected to Delivered mail Performed GET', - literal: 'true false nil' - }; - var YARDOCTAG = { - className: 'doctag', - begin: '@[A-Za-z]+' - }; - var IRB_OBJECT = { - begin: '#<', - end: '>' - }; - var COMMENT_MODES = [ - hljs.COMMENT( - '#', - '$', { - contains: [YARDOCTAG] - } - ), - hljs.COMMENT( - '^\\=begin', - '^\\=end', { - contains: [YARDOCTAG], - relevance: 10 - } - ), - hljs.COMMENT('^__END__', '\\n$') - ]; - var SUBST = { - className: 'subst', - begin: '#\\{', - end: '}', - keywords: RUBY_KEYWORDS - }; - var STRING = { - className: 'string', - contains: [hljs.BACKSLASH_ESCAPE, SUBST], - variants: [{ - begin: /'/, - end: /'|\n/ - }, - { - begin: /"/, - end: /"|\n/ - }, - { - begin: /`/, - end: /`|'|\n/ - }, - { - begin: '%[qQwWx]?\\(', - end: '\\)' - }, - { - begin: '%[qQwWx]?\\[', - end: '\\]' - }, - { - begin: '%[qQwWx]?{', - end: '}' - }, - { - begin: '%[qQwWx]?<', - end: '>' - }, - { - begin: '%[qQwWx]?/', - end: '/' - }, - { - begin: '%[qQwWx]?%', - end: '%' - }, - { - begin: '%[qQwWx]?-', - end: '-' - }, - { - begin: '%[qQwWx]?\\|', - end: '\\|' - }, - { - // \B in the beginning suppresses recognition of ?-sequences where ? - // is the last character of a preceding identifier, as in: `func?4` - begin: /\B\?(\\\d{1,3}|\\x[A-Fa-f0-9]{1,2}|\\u[A-Fa-f0-9]{4}|\\?\S)\b/ - }, - { // heredocs - begin: /<<[-~]?'?(\w+)(?:.|\n)*?\n\s*\1\b/, - returnBegin: true, - contains: [{ - begin: /<<[-~]?'?/ - }, - { - begin: /\w+/, - endSameAsBegin: true, - contains: [hljs.BACKSLASH_ESCAPE, SUBST], - } - ] - } - ] - }; - var PARAMS = { - className: 'params', - begin: '\\(', - end: '\\)', - endsParent: true, - keywords: RUBY_KEYWORDS - }; - - var RUBY_DEFAULT_CONTAINS = [ - STRING, - IRB_OBJECT, - { - className: 'class', - beginKeywords: 'class module', - end: '$|;', - illegal: /=/, - contains: [ - hljs.inherit(hljs.TITLE_MODE, { - begin: '[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?' - }), - { - begin: '<\\s*', - contains: [{ - begin: '(' + hljs.IDENT_RE + '::)?' + hljs.IDENT_RE - }] - } - ].concat(COMMENT_MODES) - }, - { - className: 'function', - beginKeywords: 'def', - end: '$|;', - contains: [ - hljs.inherit(hljs.TITLE_MODE, { - begin: RUBY_METHOD_RE - }), - PARAMS - ].concat(COMMENT_MODES) - }, - { - // swallow namespace qualifiers before symbols - begin: hljs.IDENT_RE + '::' - }, - { - className: 'symbol', - begin: hljs.UNDERSCORE_IDENT_RE + '(\\!|\\?)?:', - relevance: 0 - }, - { - className: 'symbol', - begin: ':(?!\\s)', - contains: [STRING, { - begin: RUBY_METHOD_RE - }], - relevance: 0 - }, - { - className: 'number', - begin: '(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b', - relevance: 0 - }, - { - begin: '(\\$\\W)|((\\$|\\@\\@?)(\\w+))' // variables - }, - { - className: 'comment', - begin: '\\[(?!([0-9]*m|\\[|"))', - end: "]|\\n" - }, - { // regexp container - begin: '(' + hljs.RE_STARTERS_RE + '|unless)\\s*', - keywords: 'unless', - contains: [ - IRB_OBJECT, - { - className: 'regexp', - contains: [hljs.BACKSLASH_ESCAPE, SUBST], - illegal: /\n/, - variants: [{ - begin: '%r{', - end: '}[a-z]*' - }, - { - begin: '%r\\(', - end: '\\)[a-z]*' - }, - { - begin: '%r!', - end: '![a-z]*' - }, - { - begin: '%r\\[', - end: '\\][a-z]*' - } - ] - } - ].concat(COMMENT_MODES), - relevance: 0 - } - ].concat(COMMENT_MODES); - - SUBST.contains = RUBY_DEFAULT_CONTAINS; - PARAMS.contains = RUBY_DEFAULT_CONTAINS; - - var SIMPLE_PROMPT = "[>?]>"; - var DEFAULT_PROMPT = "[\\w#]+\\(\\w+\\):\\d+:\\d+>"; - var RVM_PROMPT = "(\\w+-)?\\d+\\.\\d+\\.\\d(p\\d+)?[^>]+>"; - - var IRB_DEFAULT = [{ - begin: /^\s*=>/, - starts: { - end: '$', - contains: RUBY_DEFAULT_CONTAINS - } - }, - { - className: 'meta', - begin: '^(' + SIMPLE_PROMPT + "|" + DEFAULT_PROMPT + '|' + RVM_PROMPT + ')', - starts: { - end: '$', - contains: RUBY_DEFAULT_CONTAINS - } - } - ]; - - return { - name: 'Rails log', - aliases: ['rb', 'gemspec', 'podspec', 'thor', 'irb'], - keywords: RUBY_KEYWORDS, - illegal: /\/\*/, - contains: COMMENT_MODES.concat(IRB_DEFAULT).concat(RUBY_DEFAULT_CONTAINS) - }; -} \ No newline at end of file From d2e56d0cba862ca109eee02084e581374ed1bf49 Mon Sep 17 00:00:00 2001 From: sweetppro Date: Mon, 4 May 2020 00:01:25 +0200 Subject: [PATCH 07/10] Update SUPPORTED_LANGUAGES.md --- SUPPORTED_LANGUAGES.md | 1 + 1 file changed, 1 insertion(+) diff --git a/SUPPORTED_LANGUAGES.md b/SUPPORTED_LANGUAGES.md index ed91834344..2b47e93e2b 100644 --- a/SUPPORTED_LANGUAGES.md +++ b/SUPPORTED_LANGUAGES.md @@ -146,6 +146,7 @@ Languages that listed a **Package** below are 3rd party languages and are not bu | Q | k, kdb | | | QML | qml | | | R | r | | +| Rails-log | rails-log | [highlightjs-rails-log](https://github.com/sweetppro/highlightjs-rails-log) | Razor CSHTML | cshtml, razor, razor-cshtml | [highlightjs-cshtml-razor](https://github.com/highlightjs/highlightjs-cshtml-razor) | | ReasonML | reasonml, re | | | RenderMan RIB | rib | | From 6d2480395d67cb520c6a5e07354ce73aa3b3b017 Mon Sep 17 00:00:00 2001 From: sweetppro Date: Mon, 4 May 2020 00:01:39 +0200 Subject: [PATCH 08/10] Revert "Update SUPPORTED_LANGUAGES.md" This reverts commit d2e56d0cba862ca109eee02084e581374ed1bf49. --- SUPPORTED_LANGUAGES.md | 1 - 1 file changed, 1 deletion(-) diff --git a/SUPPORTED_LANGUAGES.md b/SUPPORTED_LANGUAGES.md index 2b47e93e2b..ed91834344 100644 --- a/SUPPORTED_LANGUAGES.md +++ b/SUPPORTED_LANGUAGES.md @@ -146,7 +146,6 @@ Languages that listed a **Package** below are 3rd party languages and are not bu | Q | k, kdb | | | QML | qml | | | R | r | | -| Rails-log | rails-log | [highlightjs-rails-log](https://github.com/sweetppro/highlightjs-rails-log) | Razor CSHTML | cshtml, razor, razor-cshtml | [highlightjs-cshtml-razor](https://github.com/highlightjs/highlightjs-cshtml-razor) | | ReasonML | reasonml, re | | | RenderMan RIB | rib | | From 4833a3e4bed3202b31679f51ac85cd26344e39b9 Mon Sep 17 00:00:00 2001 From: sweetppro Date: Mon, 4 May 2020 00:03:28 +0200 Subject: [PATCH 09/10] Revert "Revert "Update SUPPORTED_LANGUAGES.md"" This reverts commit 6d2480395d67cb520c6a5e07354ce73aa3b3b017. --- SUPPORTED_LANGUAGES.md | 1 + 1 file changed, 1 insertion(+) diff --git a/SUPPORTED_LANGUAGES.md b/SUPPORTED_LANGUAGES.md index ed91834344..2b47e93e2b 100644 --- a/SUPPORTED_LANGUAGES.md +++ b/SUPPORTED_LANGUAGES.md @@ -146,6 +146,7 @@ Languages that listed a **Package** below are 3rd party languages and are not bu | Q | k, kdb | | | QML | qml | | | R | r | | +| Rails-log | rails-log | [highlightjs-rails-log](https://github.com/sweetppro/highlightjs-rails-log) | Razor CSHTML | cshtml, razor, razor-cshtml | [highlightjs-cshtml-razor](https://github.com/highlightjs/highlightjs-cshtml-razor) | | ReasonML | reasonml, re | | | RenderMan RIB | rib | | From 37c72d274bdf7ec29d70cf35a590b1ae7bffbde1 Mon Sep 17 00:00:00 2001 From: sweetppro Date: Mon, 4 May 2020 22:52:23 +0200 Subject: [PATCH 10/10] Update SUPPORTED_LANGUAGES.md added unicorn-rails-log language repo --- SUPPORTED_LANGUAGES.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SUPPORTED_LANGUAGES.md b/SUPPORTED_LANGUAGES.md index 2b47e93e2b..68a9fc07ba 100644 --- a/SUPPORTED_LANGUAGES.md +++ b/SUPPORTED_LANGUAGES.md @@ -146,7 +146,6 @@ Languages that listed a **Package** below are 3rd party languages and are not bu | Q | k, kdb | | | QML | qml | | | R | r | | -| Rails-log | rails-log | [highlightjs-rails-log](https://github.com/sweetppro/highlightjs-rails-log) | Razor CSHTML | cshtml, razor, razor-cshtml | [highlightjs-cshtml-razor](https://github.com/highlightjs/highlightjs-cshtml-razor) | | ReasonML | reasonml, re | | | RenderMan RIB | rib | | @@ -183,6 +182,7 @@ Languages that listed a **Package** below are 3rd party languages and are not bu | Transact-SQL | tsql | [highlightjs-tsql](https://github.com/highlightjs/highlightjs-tsql) | | Twig | twig, craftcms | | | TypeScript | typescript, ts | | +| Unicorn Rails log | unicorn-rails-log | [highlightjs-unicorn-rails-log](https://github.com/sweetppro/highlightjs-unicorn-rails-log) | VB.Net | vbnet, vb | | | VBA | vba | [highlightjs-vba](https://github.com/dullin/highlightjs-vba) | | VBScript | vbscript, vbs | |