Hello community,

here is the log from the commit of package rubygem-rouge for openSUSE:Factory 
checked in at 2018-02-14 09:33:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-rouge (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-rouge.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-rouge"

Wed Feb 14 09:33:42 2018 rev:8 rq:574946 version:3.1.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-rouge/rubygem-rouge.changes      
2017-12-07 13:50:58.531525016 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-rouge.new/rubygem-rouge.changes 
2018-02-14 09:33:55.222483215 +0100
@@ -1,0 +2,12 @@
+Thu Feb  8 07:53:02 UTC 2018 - factory-a...@kulow.org
+
+- updated to version 3.1.1
+  no changelog found
+
+-------------------------------------------------------------------
+Tue Jan  9 07:44:15 UTC 2018 - co...@suse.com
+
+- updated to version 3.1.0
+  no changelog found
+
+-------------------------------------------------------------------

Old:
----
  rouge-3.0.0.gem

New:
----
  rouge-3.1.1.gem

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygem-rouge.spec ++++++
--- /var/tmp/diff_new_pack.0Ve6Mk/_old  2018-02-14 09:33:55.874459591 +0100
+++ /var/tmp/diff_new_pack.0Ve6Mk/_new  2018-02-14 09:33:55.878459446 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-rouge
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-rouge
-Version:        3.0.0
+Version:        3.1.1
 Release:        0
 %define mod_name rouge
 %define mod_full_name %{mod_name}-%{version}

++++++ rouge-3.0.0.gem -> rouge-3.1.1.gem ++++++
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rouge/demos/elm new/lib/rouge/demos/elm
--- old/lib/rouge/demos/elm     1970-01-01 01:00:00.000000000 +0100
+++ new/lib/rouge/demos/elm     2018-01-31 07:32:33.000000000 +0100
@@ -0,0 +1,4 @@
+import Html exposing (text)
+
+main =
+  text "Hello, World!"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rouge/demos/hack new/lib/rouge/demos/hack
--- old/lib/rouge/demos/hack    1970-01-01 01:00:00.000000000 +0100
+++ new/lib/rouge/demos/hack    2018-01-31 07:32:33.000000000 +0100
@@ -0,0 +1,5 @@
+<?hh // strict
+
+async function foo(): Awaitable<string> {
+  return await (() ==> 'Hello, world')();
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rouge/guessers/disambiguation.rb 
new/lib/rouge/guessers/disambiguation.rb
--- old/lib/rouge/guessers/disambiguation.rb    2017-09-22 03:09:40.000000000 
+0200
+++ new/lib/rouge/guessers/disambiguation.rb    2018-01-31 07:32:33.000000000 
+0100
@@ -83,6 +83,19 @@
 
         next Matlab if matches?(/^\s*?%/)
       end
+
+      disambiguate '*.php' do
+        # PHP always takes precedence over Hack
+        PHP
+      end
+
+      disambiguate '*.hh' do
+        next Cpp if matches?(/^\s*#include/)
+        next Hack if matches?(/^<\?hh/)
+        next Hack if matches?(/(\(|, ?)\$\$/)
+
+        Cpp
+      end
     end
   end
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rouge/lexers/c.rb new/lib/rouge/lexers/c.rb
--- old/lib/rouge/lexers/c.rb   2017-09-22 03:09:40.000000000 +0200
+++ new/lib/rouge/lexers/c.rb   2018-01-31 07:32:33.000000000 +0100
@@ -85,7 +85,7 @@
 
       state :whitespace do
         rule /\n+/m, Text, :bol
-        rule %r(//(\\.|.)*?\n), Comment::Single, :bol
+        rule %r(//(\\.|.)*?$), Comment::Single, :bol
         mixin :inline_whitespace
       end
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rouge/lexers/elm.rb new/lib/rouge/lexers/elm.rb
--- old/lib/rouge/lexers/elm.rb 1970-01-01 01:00:00.000000000 +0100
+++ new/lib/rouge/lexers/elm.rb 2018-01-31 07:32:33.000000000 +0100
@@ -0,0 +1,89 @@
+# -*- coding: utf-8 -*- #
+
+module Rouge
+  module Lexers
+    class Elm < RegexLexer
+      title "Elm"
+      desc "The Elm programming language (http://elm-lang.org/)"
+
+      tag 'elm'
+      filenames '*.elm'
+      mimetypes 'text/x-elm'
+
+      # Keywords are logically grouped by lines
+      keywords = %w(
+        module exposing port
+        import as
+        type alias
+        if then else
+        case of
+        let in
+      )
+
+      state :root do
+        # Whitespaces
+        rule /\s+/m, Text
+        # Single line comments
+        rule /--.*/, Comment::Single
+        # Multiline comments
+        rule /{-/, Comment::Multiline, :multiline_comment
+
+        # Keywords
+        rule /\b(#{keywords.join('|')})\b/, Keyword
+
+        # Variable or a function
+        rule /[a-z][\w]*/, Name
+        # Underscore is a name for a variable, when it won't be used later
+        rule /_/, Name
+        # Type
+        rule /[A-Z][\w]*/, Keyword::Type        
+
+        # Two symbol operators: -> :: // .. && || ++ |> <| << >> == /= <= >=
+        rule /(->|::|\/\/|\.\.|&&|\|\||\+\+|\|>|<\||>>|<<|==|\/=|<=|>=)/, 
Operator
+        # One symbol operators: + - / * % = < > ^ | !
+        rule /[+-\/*%=<>^\|!]/, Operator
+        # Lambda operator
+        rule /\\/, Operator
+        # Not standard Elm operators, but these symbols can be used for custom 
inflix operators. We need to highlight them as operators as well.
+        rule /[@\#$&~?]/, Operator
+
+        # Single, double quotes, and triple double quotes
+        rule /"""/, Str, :multiline_string
+        rule /'(\\.|.)'/, Str::Char        
+        rule /"/, Str, :double_quote
+
+        # Numbers
+        rule /0x[\da-f]+/i, Num::Hex
+        rule /\d+e[+-]?\d+/i, Num::Float
+        rule /\d+\.\d+(e[+-]?\d+)?/i, Num::Float
+        rule /\d+/, Num::Integer
+
+        # Punctuation: [ ] ( ) , ; ` { } :
+        rule /[\[\](),;`{}:]/, Punctuation
+      end
+
+      # Multiline and nested commenting
+      state :multiline_comment do
+        rule /-}/, Comment::Multiline, :pop!
+        rule /{-/, Comment::Multiline, :multiline_comment
+        rule /[^-{}]+/, Comment::Multiline
+        rule /[-{}]/, Comment::Multiline
+      end
+
+      # Double quotes
+      state :double_quote do
+        rule /[^\\"]+/, Str::Double
+        rule /\\"/, Str::Escape
+        rule /"/, Str::Double, :pop!
+      end
+
+      # Multiple line string with tripple double quotes, e.g. """ multi """
+      state :multiline_string do
+        rule /\s*"""/, Str, :pop!
+        rule /.*/, Str
+        rule /\s*/, Str
+      end
+
+    end
+  end
+end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rouge/lexers/fsharp.rb 
new/lib/rouge/lexers/fsharp.rb
--- old/lib/rouge/lexers/fsharp.rb      2017-09-22 03:09:40.000000000 +0200
+++ new/lib/rouge/lexers/fsharp.rb      2018-01-31 07:32:33.000000000 +0100
@@ -41,7 +41,7 @@
       end
 
       operator = %r([\[\];,{}_()!$%&*+./:<=>?@^|~#-]+)
-      id = /[a-z][\w']*/i
+      id = /([a-z][\w']*)|(``[^`\n\r\t]+``)/i
       upper_id = /[A-Z][\w']*/
 
       state :root do
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rouge/lexers/hack.rb new/lib/rouge/lexers/hack.rb
--- old/lib/rouge/lexers/hack.rb        1970-01-01 01:00:00.000000000 +0100
+++ new/lib/rouge/lexers/hack.rb        2018-01-31 07:32:33.000000000 +0100
@@ -0,0 +1,48 @@
+# -*- coding: utf-8 -*- #
+
+module Rouge
+  module Lexers
+    load_lexer 'php.rb'
+
+    class Hack < PHP
+      title 'Hack'
+      desc 'The Hack programming language (hacklang.org)'
+      tag 'hack'
+      aliases 'hack', 'hh'
+      filenames '*.php', '*.hh'
+
+      def self.detect?(text)
+        return true if /<\?hh/ =~ text
+        return true if text.shebang?('hhvm')
+        return true if /async function [a-zA-Z]/ =~ text
+        return true if /\): Awaitable</ =~ text
+
+        return false
+      end
+
+      def self.keywords
+        @hh_keywords ||= super.merge Set.new %w(
+          type newtype enum
+          as super
+          async await Awaitable
+          vec dict keyset
+          void int string bool float double
+          arraykey num Stringish
+        )
+      end
+
+      prepend :template do
+        rule /<\?hh(\s*\/\/\s*(strict|decl|partial))?$/, Comment::Preproc, :php
+      end
+
+      prepend :php do
+        rule %r((/\*\s*)(HH_(?:IGNORE_ERROR|FIXME)\[\d+\])([^*]*)(\*/)) do
+          groups Comment::Preproc, Comment::Preproc, Comment::Multiline, 
Comment::Preproc
+        end
+
+        rule %r(// UNSAFE(?:_EXPR|_BLOCK)?), Comment::Preproc
+        rule %r(/\*\s*UNSAFE_EXPR\s*\*/), Comment::Preproc
+      end
+    end
+  end
+end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rouge/lexers/haskell.rb 
new/lib/rouge/lexers/haskell.rb
--- old/lib/rouge/lexers/haskell.rb     2017-09-22 03:09:40.000000000 +0200
+++ new/lib/rouge/lexers/haskell.rb     2018-01-31 07:32:33.000000000 +0100
@@ -55,7 +55,6 @@
 
         rule /\bimport\b/, Keyword::Reserved, :import
         rule /\bmodule\b/, Keyword::Reserved, :module
-        rule /\berror\b/, Name::Exception
         rule /\b(?:#{reserved.join('|')})\b/, Keyword::Reserved
         # not sure why, but ^ doesn't work here
         # rule /^[_a-z][\w']*/, Name::Function
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rouge/lexers/html.rb new/lib/rouge/lexers/html.rb
--- old/lib/rouge/lexers/html.rb        2017-09-22 03:09:40.000000000 +0200
+++ new/lib/rouge/lexers/html.rb        2018-01-31 07:32:33.000000000 +0100
@@ -37,6 +37,7 @@
         rule /<\s*style\s*/m do
           token Name::Tag
           @css.reset!
+          @lang = @css
           push :style_content
           push :tag
         end
@@ -124,13 +125,13 @@
 
       state :style_content do
         rule /[^<]+/ do
-          delegate @css
+          delegate @lang
         end
 
         rule %r(<\s*/\s*style\s*>)m, Name::Tag, :pop!
 
         rule /</ do
-          delegate @css
+          delegate @lang
         end
       end
     end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rouge/lexers/javascript.rb 
new/lib/rouge/lexers/javascript.rb
--- old/lib/rouge/lexers/javascript.rb  2017-09-22 03:09:40.000000000 +0200
+++ new/lib/rouge/lexers/javascript.rb  2018-01-31 07:32:33.000000000 +0100
@@ -14,7 +14,7 @@
 
       tag 'javascript'
       aliases 'js'
-      filenames '*.js'
+      filenames '*.js', '*.mjs'
       mimetypes 'application/javascript', 'application/x-javascript',
                 'text/javascript', 'text/x-javascript'
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rouge/lexers/kotlin.rb 
new/lib/rouge/lexers/kotlin.rb
--- old/lib/rouge/lexers/kotlin.rb      2017-09-22 03:09:40.000000000 +0200
+++ new/lib/rouge/lexers/kotlin.rb      2018-01-31 07:32:33.000000000 +0100
@@ -31,7 +31,7 @@
         rule %r'^\s*\[.*?\]', Name::Attribute
         rule %r'[^\S\n]+', Text
         rule %r'\\\n', Text # line continuation
-        rule %r'//.*?\n', Comment::Single
+        rule %r'//.*?$', Comment::Single
         rule %r'/[*].*?[*]/'m, Comment::Multiline
         rule %r'\n', Text
         rule %r'::|!!|\?[:.]', Operator
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rouge/lexers/perl.rb new/lib/rouge/lexers/perl.rb
--- old/lib/rouge/lexers/perl.rb        2017-09-22 03:09:40.000000000 +0200
+++ new/lib/rouge/lexers/perl.rb        2018-01-31 07:32:33.000000000 +0100
@@ -104,6 +104,7 @@
         rule /__END__\b/, Comment::Preproc, :end_part
         rule /\$\^[ADEFHILMOPSTWX]/, Name::Variable::Global
         rule /\$[\\"'\[\]&`+*.,;=%~?@$!<>(^\|\/-](?!\w)/, 
Name::Variable::Global
+        rule /[-+\/*%=<>&^\|!\\~]=?/, Operator
         rule /[$@%#]+/, Name::Variable, :varname
 
         rule /0_?[0-7]+(_[0-7]+)*/, Num::Oct
@@ -128,7 +129,6 @@
         rule /sub\s+/, Keyword, :funcname
         rule /\[\]|\*\*|::|<<|>>|>=|<=|<=>|={3}|!=|=~|!~|&&?|\|\||\.{1,3}/,
           Operator
-        rule /[-+\/*%=<>&^\|!\\~]=?/, Operator
         rule /[()\[\]:;,<>\/?{}]/, Punctuation
         rule(/(?=\w)/) { push :name }
       end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rouge/lexers/php.rb new/lib/rouge/lexers/php.rb
--- old/lib/rouge/lexers/php.rb 2017-09-22 03:09:40.000000000 +0200
+++ new/lib/rouge/lexers/php.rb 2018-01-31 07:32:33.000000000 +0100
@@ -77,6 +77,8 @@
 
       def self.detect?(text)
         return true if text.shebang?('php')
+        return false if /^<\?hh/ =~ text
+        return true if /^<\?php/ =~ text
       end
 
       state :root do
@@ -97,8 +99,8 @@
         # heredocs
         rule /<<<('?)(#{id})\1\n.*?\n\2;?\n/im, Str::Heredoc
         rule /\s+/, Text
-        rule /#.*?\n/, Comment::Single
-        rule %r(//.*?\n), Comment::Single
+        rule /#.*?$/, Comment::Single
+        rule %r(//.*?$), Comment::Single
         # empty comment, otherwise seen as the start of a docstring
         rule %r(/\*\*/), Comment::Multiline
         rule %r(/\*\*.*?\*/)m, Str::Doc
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rouge/lexers/powershell.rb 
new/lib/rouge/lexers/powershell.rb
--- old/lib/rouge/lexers/powershell.rb  2017-09-22 03:09:40.000000000 +0200
+++ new/lib/rouge/lexers/powershell.rb  2018-01-31 07:32:33.000000000 +0100
@@ -9,7 +9,7 @@
       desc 'powershell'
       tag 'powershell'
       aliases 'posh'
-      filenames '*.ps1', '*.psm1', '*.psd1'
+      filenames '*.ps1', '*.psm1', '*.psd1', '*.psrc', '*.pssc'
       mimetypes 'text/x-powershell'
 
       ATTRIBUTES = %w(
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rouge/lexers/python.rb 
new/lib/rouge/lexers/python.rb
--- old/lib/rouge/lexers/python.rb      2017-09-22 03:09:40.000000000 +0200
+++ new/lib/rouge/lexers/python.rb      2018-01-31 07:32:33.000000000 +0100
@@ -19,6 +19,7 @@
           assert break continue del elif else except exec
           finally for global if lambda pass print raise
           return try while yield as with from import yield
+          async await
         )
       end
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rouge/lexers/ruby.rb new/lib/rouge/lexers/ruby.rb
--- old/lib/rouge/lexers/ruby.rb        2017-09-22 03:09:40.000000000 +0200
+++ new/lib/rouge/lexers/ruby.rb        2018-01-31 07:32:33.000000000 +0100
@@ -9,7 +9,7 @@
       aliases 'rb'
       filenames '*.rb', '*.ruby', '*.rbw', '*.rake', '*.gemspec', '*.podspec',
                 'Rakefile', 'Guardfile', 'Gemfile', 'Capfile', 'Podfile',
-                'Vagrantfile', '*.ru', '*.prawn', 'Berksfile'
+                'Vagrantfile', '*.ru', '*.prawn', 'Berksfile', '*.arb'
 
       mimetypes 'text/x-ruby', 'application/x-ruby'
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rouge/lexers/rust.rb new/lib/rouge/lexers/rust.rb
--- old/lib/rouge/lexers/rust.rb        2017-09-22 03:09:40.000000000 +0200
+++ new/lib/rouge/lexers/rust.rb        2018-01-31 07:32:33.000000000 +0100
@@ -18,8 +18,8 @@
         @keywords ||= %w(
           as assert break const copy do drop else enum extern fail false
           fn for if impl let log loop match mod move mut priv pub pure
-          ref return self static struct true trait type unsafe use while
-          box
+          ref return self static struct true trait type unsafe use where
+          while box
         )
       end
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rouge/lexers/sass.rb new/lib/rouge/lexers/sass.rb
--- old/lib/rouge/lexers/sass.rb        2017-09-22 03:09:40.000000000 +0200
+++ new/lib/rouge/lexers/sass.rb        2018-01-31 07:32:33.000000000 +0100
@@ -23,7 +23,7 @@
 
       state :content do
         # block comments
-        rule %r(//.*?\n) do
+        rule %r(//.*?$) do
           token Comment::Single
           pop!; starts_block :single_comment
         end
@@ -42,13 +42,13 @@
 
         rule /:/, Name::Attribute, :old_style_attr
 
-        rule(/(?=.+?:([^a-z]|$))/) { push :attribute }
+        rule(/(?=[^\[\n]+?:([^a-z]|$))/) { push :attribute }
 
         rule(//) { push :selector }
       end
 
       state :single_comment do
-        rule /.*?\n/, Comment::Single, :pop!
+        rule /.*?$/, Comment::Single, :pop!
       end
 
       state :multi_comment do
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rouge/lexers/scss.rb new/lib/rouge/lexers/scss.rb
--- old/lib/rouge/lexers/scss.rb        2017-09-22 03:09:40.000000000 +0200
+++ new/lib/rouge/lexers/scss.rb        2018-01-31 07:32:33.000000000 +0100
@@ -13,14 +13,14 @@
 
       state :root do
         rule /\s+/, Text
-        rule %r(//.*?\n), Comment::Single
+        rule %r(//.*?$), Comment::Single
         rule %r(/[*].*?[*]/)m, Comment::Multiline
         rule /@import\b/, Keyword, :value
 
         mixin :content_common
 
         rule(/(?=[^;{}][;}])/) { push :attribute }
-        rule(/(?=[^;{}:]+:[^a-z])/) { push :attribute }
+        rule(/(?=[^;{}:\[]+:[^a-z])/) { push :attribute }
 
         rule(//) { push :selector }
       end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rouge/lexers/shell.rb 
new/lib/rouge/lexers/shell.rb
--- old/lib/rouge/lexers/shell.rb       2017-09-22 03:09:40.000000000 +0200
+++ new/lib/rouge/lexers/shell.rb       2018-01-31 07:32:33.000000000 +0100
@@ -24,13 +24,22 @@
 
       BUILTINS = %w(
         alias bg bind break builtin caller cd command compgen
-        complete declare dirs disown echo enable eval exec exit
-        export false fc fg getopts hash help history jobs kill let
-        local logout popd printf pushd pwd read readonly set shift
-        shopt source suspend test time times trap true type typeset
-        ulimit umask unalias unset wait
+        complete declare dirs disown enable eval exec exit
+        export false fc fg getopts hash help history jobs let
+        local logout mapfile popd pushd pwd read readonly set
+        shift shopt source suspend test time times trap true type
+        typeset ulimit umask unalias unset wait
 
-        ls tar cat grep sudo
+        cat tac nl od base32 base64 fmt pr fold head tail split csplit
+        wc sum cksum b2sum md5sum sha1sum sha224sum sha256sum sha384sum
+        sha512sum sort shuf uniq comm ptx tsort cut paste join tr expand
+        unexpand ls dir vdir dircolors cp dd install mv rm shred link ln
+        mkdir mkfifo mknod readlink rmdir unlink chown chgrp chmod touch
+        df du stat sync truncate echo printf yes expr tee basename dirname
+        pathchk mktemp realpath pwd stty printenv tty id logname whoami
+        groups users who date arch nproc uname hostname hostid uptime chcon
+        runcon chroot env nice nohup stdbuf timeout kill sleep factor numfmt
+        seq tar grep sudo awk sed gzip gunzip
       ).join('|')
 
       state :basic do
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rouge/lexers/swift.rb 
new/lib/rouge/lexers/swift.rb
--- old/lib/rouge/lexers/swift.rb       2017-09-22 03:09:40.000000000 +0200
+++ new/lib/rouge/lexers/swift.rb       2018-01-31 07:32:33.000000000 +0100
@@ -66,7 +66,7 @@
         mixin :whitespace
         rule /\$(([1-9]\d*)?\d)/, Name::Variable
 
-        rule %r{[()\[\]{}:;,?]}, Punctuation
+        rule %r{[()\[\]{}:;,?\\]}, Punctuation
         rule %r([-/=+*%<>!&|^.~]+), Operator
         rule /@?"/, Str, :dq
         rule /'(\\.|.)'/, Str::Char
@@ -107,6 +107,11 @@
           groups Keyword, Text, Name::Variable
         end
 
+        rule /(let|var)\b(\s*)([(])/ do
+          groups Keyword, Text, Punctuation
+          push :tuple
+        end
+
         rule 
/(?!\b(if|while|for|private|internal|unowned|switch|case)\b)\b#{id}(?=(\?|!)?\s*[(])/
 do |m|
           if m[0] =~ /^[[:upper:]]/
             token Keyword::Type
@@ -135,6 +140,21 @@
             token Name
           end
         end
+
+        rule /(`)(#{id})(`)/ do
+          groups Punctuation, Name::Variable, Punctuation
+        end
+      end
+
+      state :tuple do
+        rule /(#{id})/, Name::Variable
+        rule /(`)(#{id})(`)/ do
+            groups Punctuation, Name::Variable, Punctuation
+        end
+        rule /,/, Punctuation
+        rule /[(]/, Punctuation, :push
+        rule /[)]/, Punctuation, :pop!
+        mixin :inline_whitespace
       end
 
       state :dq do
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rouge/lexers/vue.rb new/lib/rouge/lexers/vue.rb
--- old/lib/rouge/lexers/vue.rb 2017-09-22 03:09:41.000000000 +0200
+++ new/lib/rouge/lexers/vue.rb 2018-01-31 07:32:33.000000000 +0100
@@ -16,13 +16,15 @@
       end
 
       def lookup_lang(lang)
+        lang.downcase!
+        lang = lang.gsub(/["']*/, '')
         case lang
         when 'html' then HTML
         when 'css' then CSS
         when 'javascript' then Javascript
         when 'sass' then Sass
         when 'scss' then Scss
-        when 'coffee' then CoffeeScript
+        when 'coffee' then Coffeescript
           # TODO: add more when the lexers are done
         else
           PlainText
@@ -77,7 +79,7 @@
       state :lang_tag do
         rule /(lang\s*=)(\s*)("(?:\\.|[^\\])*?"|'(\\.|[^\\])*?'|[^\s>]+)/ do 
|m|
           groups Name::Attribute, Text, Str
-          @lang = lookup_lang(m[2])
+          @lang = lookup_lang(m[3])
         end
 
         mixin :tag
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rouge/version.rb new/lib/rouge/version.rb
--- old/lib/rouge/version.rb    2017-09-22 03:09:41.000000000 +0200
+++ new/lib/rouge/version.rb    2018-01-31 07:32:33.000000000 +0100
@@ -2,6 +2,6 @@
 
 module Rouge
   def self.version
-    "3.0.0"
+    "3.1.1"
   end
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2017-09-22 03:09:40.000000000 +0200
+++ new/metadata        2018-01-31 07:32:33.000000000 +0100
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: rouge
 version: !ruby/object:Gem::Version
-  version: 3.0.0
+  version: 3.1.1
 platform: ruby
 authors:
 - Jeanine Adkisson
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2017-09-22 00:00:00.000000000 Z
+date: 2018-01-31 00:00:00.000000000 Z
 dependencies: []
 description: Rouge aims to a be a simple, easy-to-extend drop-in replacement 
for pygments.
 email:
@@ -52,6 +52,7 @@
 - lib/rouge/demos/dot
 - lib/rouge/demos/eiffel
 - lib/rouge/demos/elixir
+- lib/rouge/demos/elm
 - lib/rouge/demos/erb
 - lib/rouge/demos/erlang
 - lib/rouge/demos/factor
@@ -63,6 +64,7 @@
 - lib/rouge/demos/gradle
 - lib/rouge/demos/graphql
 - lib/rouge/demos/groovy
+- lib/rouge/demos/hack
 - lib/rouge/demos/haml
 - lib/rouge/demos/handlebars
 - lib/rouge/demos/haskell
@@ -201,6 +203,7 @@
 - lib/rouge/lexers/dot.rb
 - lib/rouge/lexers/eiffel.rb
 - lib/rouge/lexers/elixir.rb
+- lib/rouge/lexers/elm.rb
 - lib/rouge/lexers/erb.rb
 - lib/rouge/lexers/erlang.rb
 - lib/rouge/lexers/factor.rb
@@ -213,6 +216,7 @@
 - lib/rouge/lexers/gradle.rb
 - lib/rouge/lexers/graphql.rb
 - lib/rouge/lexers/groovy.rb
+- lib/rouge/lexers/hack.rb
 - lib/rouge/lexers/haml.rb
 - lib/rouge/lexers/handlebars.rb
 - lib/rouge/lexers/haskell.rb
@@ -333,7 +337,9 @@
 licenses:
 - MIT
 - BSD-2-Clause
-metadata: {}
+metadata:
+  source_code_uri: https://github.com/jneen/rouge
+  changelog_uri: https://github.com/jneen/rouge/blob/master/CHANGELOG.md
 post_install_message: 
 rdoc_options: []
 require_paths:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rouge.gemspec new/rouge.gemspec
--- old/rouge.gemspec   2017-09-22 03:09:41.000000000 +0200
+++ new/rouge.gemspec   2018-01-31 07:32:33.000000000 +0100
@@ -16,4 +16,8 @@
   s.executables = %w(rougify)
   s.licenses = ['MIT', 'BSD-2-Clause']
   s.required_ruby_version = '>= 2.0'
+  s.metadata = {
+    'source_code_uri' => 'https://github.com/jneen/rouge',
+    'changelog_uri' => 
'https://github.com/jneen/rouge/blob/master/CHANGELOG.md'
+  }
 end


Reply via email to