diff options
author | Matthäus G. Chajdas <dev@anteru.net> | 2022-12-04 15:36:16 +0100 |
---|---|---|
committer | Matthäus G. Chajdas <dev@anteru.net> | 2022-12-04 15:36:16 +0100 |
commit | c1fe7bb1ad2c04f894f90b23090fa854794d63ac (patch) | |
tree | f3e1c3ca844a68668fa5cc40611ae5d35d99cdf6 /tests/snippets/ruby | |
parent | d98309343786205a34b483c559be5eefcfd7eade (diff) | |
download | pygments-git-c1fe7bb1ad2c04f894f90b23090fa854794d63ac.tar.gz |
Fix whitespace handling in Ruby.
Diffstat (limited to 'tests/snippets/ruby')
-rw-r--r-- | tests/snippets/ruby/test_escaped_bracestring.txt | 4 | ||||
-rw-r--r-- | tests/snippets/ruby/test_interpolation_nested_curly.txt | 24 | ||||
-rw-r--r-- | tests/snippets/ruby/test_operator_methods.txt | 2 | ||||
-rw-r--r-- | tests/snippets/ruby/test_range_syntax1.txt | 2 | ||||
-rw-r--r-- | tests/snippets/ruby/test_range_syntax2.txt | 2 | ||||
-rw-r--r-- | tests/snippets/ruby/test_range_syntax3.txt | 6 |
6 files changed, 20 insertions, 20 deletions
diff --git a/tests/snippets/ruby/test_escaped_bracestring.txt b/tests/snippets/ruby/test_escaped_bracestring.txt index 7bcf845e..14718b94 100644 --- a/tests/snippets/ruby/test_escaped_bracestring.txt +++ b/tests/snippets/ruby/test_escaped_bracestring.txt @@ -11,9 +11,9 @@ str.gsub(%r{\\\\}, "/") '\\\\' Literal.String.Regex '}' Literal.String.Regex ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String.Double '/' Literal.String.Double '"' Literal.String.Double ')' Punctuation -'\n' Text +'\n' Text.Whitespace diff --git a/tests/snippets/ruby/test_interpolation_nested_curly.txt b/tests/snippets/ruby/test_interpolation_nested_curly.txt index eceb04af..f4a69f7b 100644 --- a/tests/snippets/ruby/test_interpolation_nested_curly.txt +++ b/tests/snippets/ruby/test_interpolation_nested_curly.txt @@ -5,7 +5,7 @@ '"' Literal.String.Double 'A' Literal.String.Double '#{' Literal.String.Interpol -' ' Text +' ' Text.Whitespace '(' Punctuation '3' Literal.Number.Integer '..' Operator @@ -13,44 +13,44 @@ ')' Punctuation '.' Operator 'group_by' Name -' ' Text +' ' Text.Whitespace '{' Literal.String.Interpol -' ' Text +' ' Text.Whitespace '|' Operator 'x' Name '|' Operator -' ' Text +' ' Text.Whitespace 'x' Name '/' Operator '2' Literal.Number.Integer '}' Literal.String.Interpol '.' Operator 'map' Name -' ' Text +' ' Text.Whitespace 'do' Keyword -' ' Text +' ' Text.Whitespace '|' Operator 'k' Name ',' Punctuation 'v' Name '|' Operator -' ' Text +' ' Text.Whitespace '"' Literal.String.Double '#{' Literal.String.Interpol 'k' Name '}' Literal.String.Interpol '"' Literal.String.Double -' ' Text +' ' Text.Whitespace 'end' Keyword '.' Operator 'join' Name -' ' Text +' ' Text.Whitespace '}' Literal.String.Interpol '"' Literal.String.Double -' ' Text +' ' Text.Whitespace '+' Operator -' ' Text +' ' Text.Whitespace '"' Literal.String.Double 'Z' Literal.String.Double '"' Literal.String.Double -'\n' Text +'\n' Text.Whitespace diff --git a/tests/snippets/ruby/test_operator_methods.txt b/tests/snippets/ruby/test_operator_methods.txt index f444ee4f..c8f7a7ac 100644 --- a/tests/snippets/ruby/test_operator_methods.txt +++ b/tests/snippets/ruby/test_operator_methods.txt @@ -6,4 +6,4 @@ x.==4 '.' Operator '==' Name.Operator '4' Literal.Number.Integer -'\n' Text +'\n' Text.Whitespace diff --git a/tests/snippets/ruby/test_range_syntax1.txt b/tests/snippets/ruby/test_range_syntax1.txt index df7c40cb..f0fc15d2 100644 --- a/tests/snippets/ruby/test_range_syntax1.txt +++ b/tests/snippets/ruby/test_range_syntax1.txt @@ -5,4 +5,4 @@ '1' Literal.Number.Integer '..' Operator '3' Literal.Number.Integer -'\n' Text +'\n' Text.Whitespace diff --git a/tests/snippets/ruby/test_range_syntax2.txt b/tests/snippets/ruby/test_range_syntax2.txt index 72d47e85..a3ba24ae 100644 --- a/tests/snippets/ruby/test_range_syntax2.txt +++ b/tests/snippets/ruby/test_range_syntax2.txt @@ -5,4 +5,4 @@ '1' Literal.Number.Integer '...' Operator '3' Literal.Number.Integer -'\n' Text +'\n' Text.Whitespace diff --git a/tests/snippets/ruby/test_range_syntax3.txt b/tests/snippets/ruby/test_range_syntax3.txt index a72f8380..08bf4b12 100644 --- a/tests/snippets/ruby/test_range_syntax3.txt +++ b/tests/snippets/ruby/test_range_syntax3.txt @@ -3,8 +3,8 @@ ---tokens--- '1' Literal.Number.Integer -' ' Text +' ' Text.Whitespace '..' Operator -' ' Text +' ' Text.Whitespace '3' Literal.Number.Integer -'\n' Text +'\n' Text.Whitespace |