From 2c04a8b47a7d90d0bfbcd4ad704006401f55405f Mon Sep 17 00:00:00 2001 From: Michael Camilleri Date: Sun, 16 Feb 2020 14:10:19 +0900 Subject: [PATCH] Add jsonc alias to JSONDOC lexer --- lib/rouge/lexers/json_doc.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/rouge/lexers/json_doc.rb b/lib/rouge/lexers/json_doc.rb index d27bd7bac8..c243709100 100644 --- a/lib/rouge/lexers/json_doc.rb +++ b/lib/rouge/lexers/json_doc.rb @@ -8,6 +8,7 @@ module Lexers class JSONDOC < JSON desc "JavaScript Object Notation with extensions for documentation" tag 'json-doc' + aliases 'jsonc' prepend :name do rule %r/([$\w]+)(\s*)(:)/ do