diff options
Diffstat (limited to 'tests/snippets/scala')
17 files changed, 54 insertions, 54 deletions
diff --git a/tests/snippets/scala/test_colon_colon_function_name.txt b/tests/snippets/scala/test_colon_colon_function_name.txt index eeebed2e..8840fff2 100644 --- a/tests/snippets/scala/test_colon_colon_function_name.txt +++ b/tests/snippets/scala/test_colon_colon_function_name.txt @@ -3,31 +3,31 @@ def ::(xs: List[T]): List[T] = ::(x, xs) ---tokens--- 'def' Keyword -' ' Text +' ' Text.Whitespace '::' Name.Function '(' Punctuation 'xs' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'List' Name.Class '[' Punctuation 'T' Name.Class ']' Punctuation ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'List' Name.Class '[' Punctuation 'T' Name.Class ']' Punctuation -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '::' Name '(' Punctuation 'x' Name ',' Punctuation -' ' Text +' ' Text.Whitespace 'xs' Name ')' Punctuation -'\n' Text +'\n' Text.Whitespace diff --git a/tests/snippets/scala/test_default_parameter.txt b/tests/snippets/scala/test_default_parameter.txt index a82e5a06..16ce948e 100644 --- a/tests/snippets/scala/test_default_parameter.txt +++ b/tests/snippets/scala/test_default_parameter.txt @@ -3,35 +3,35 @@ def f(using y: Char = if true then 'a' else 2): Int = ??? ---tokens--- 'def' Keyword -' ' Text +' ' Text.Whitespace 'f' Name.Function '(' Punctuation 'using' Keyword -' ' Text +' ' Text.Whitespace 'y' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'Char' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'true' Keyword.Constant -' ' Text +' ' Text.Whitespace 'then' Keyword -' ' Text +' ' Text.Whitespace "'a'" Literal.String.Char -' ' Text +' ' Text.Whitespace 'else' Keyword -' ' Text +' ' Text.Whitespace '2' Literal.Number.Integer ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'Int' Name.Class -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '???' Operator -'\n' Text +'\n' Text.Whitespace diff --git a/tests/snippets/scala/test_end_val.txt b/tests/snippets/scala/test_end_val.txt index 112cfafa..43ac172c 100644 --- a/tests/snippets/scala/test_end_val.txt +++ b/tests/snippets/scala/test_end_val.txt @@ -3,6 +3,6 @@ end val ---tokens--- 'end' Keyword -' ' Text +' ' Text.Whitespace 'val' Keyword -'\n' Text +'\n' Text.Whitespace diff --git a/tests/snippets/scala/test_end_valx.txt b/tests/snippets/scala/test_end_valx.txt index e72c4041..e1d17d71 100644 --- a/tests/snippets/scala/test_end_valx.txt +++ b/tests/snippets/scala/test_end_valx.txt @@ -3,6 +3,6 @@ end valx ---tokens--- 'end' Keyword -' ' Text +' ' Text.Whitespace 'valx' Name.Namespace -'\n' Text +'\n' Text.Whitespace diff --git a/tests/snippets/scala/test_float_with_exponents.txt b/tests/snippets/scala/test_float_with_exponents.txt index 9a702431..d64ee633 100644 --- a/tests/snippets/scala/test_float_with_exponents.txt +++ b/tests/snippets/scala/test_float_with_exponents.txt @@ -3,10 +3,10 @@ ---tokens--- '.1e12' Literal.Number.Float -' ' Text +' ' Text.Whitespace '.1e+34' Literal.Number.Float -' ' Text +' ' Text.Whitespace '.1e-56' Literal.Number.Float -' ' Text +' ' Text.Whitespace '.1e12f' Literal.Number.Float -'\n' Text +'\n' Text.Whitespace diff --git a/tests/snippets/scala/test_function_operator_name.txt b/tests/snippets/scala/test_function_operator_name.txt index a1823f03..72c375d4 100644 --- a/tests/snippets/scala/test_function_operator_name.txt +++ b/tests/snippets/scala/test_function_operator_name.txt @@ -3,16 +3,16 @@ def < (y: String): Boolean ---tokens--- 'def' Keyword -' ' Text +' ' Text.Whitespace '<' Name.Function -' ' Text +' ' Text.Whitespace '(' Punctuation 'y' Name ':' Punctuation -' ' Text +' ' Text.Whitespace 'String' Name.Class ')' Punctuation ':' Punctuation -' ' Text +' ' Text.Whitespace 'Boolean' Name.Class -'\n' Text +'\n' Text.Whitespace diff --git a/tests/snippets/scala/test_import_path.txt b/tests/snippets/scala/test_import_path.txt index fc8e5a2c..3e06d1fa 100644 --- a/tests/snippets/scala/test_import_path.txt +++ b/tests/snippets/scala/test_import_path.txt @@ -3,7 +3,7 @@ import a.b.c ---tokens--- 'import' Keyword -' ' Text +' ' Text.Whitespace 'a' Name.Namespace '.' Punctuation 'b' Name.Namespace diff --git a/tests/snippets/scala/test_invalid_symbol_and_invalid_char.txt b/tests/snippets/scala/test_invalid_symbol_and_invalid_char.txt index 9af24e53..ccaae59c 100644 --- a/tests/snippets/scala/test_invalid_symbol_and_invalid_char.txt +++ b/tests/snippets/scala/test_invalid_symbol_and_invalid_char.txt @@ -4,5 +4,5 @@ ---tokens--- "'" Error '1' Literal.Number.Integer -' ' Text +' ' Text.Whitespace "//'\n" Comment.Single diff --git a/tests/snippets/scala/test_open_soft_keyword.txt b/tests/snippets/scala/test_open_soft_keyword.txt index 800880ee..903be71d 100644 --- a/tests/snippets/scala/test_open_soft_keyword.txt +++ b/tests/snippets/scala/test_open_soft_keyword.txt @@ -3,10 +3,10 @@ val open = true ---tokens--- 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'open' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'true' Keyword.Constant -'\n' Text +'\n' Text.Whitespace diff --git a/tests/snippets/scala/test_package_name.txt b/tests/snippets/scala/test_package_name.txt index 6b1f3482..53633e2c 100644 --- a/tests/snippets/scala/test_package_name.txt +++ b/tests/snippets/scala/test_package_name.txt @@ -3,9 +3,9 @@ package p1.p2: ---tokens--- 'package' Keyword -' ' Text +' ' Text.Whitespace 'p1' Name.Namespace '.' Punctuation 'p2' Name ':' Punctuation -'\n' Text +'\n' Text.Whitespace diff --git a/tests/snippets/scala/test_prepend_operator.txt b/tests/snippets/scala/test_prepend_operator.txt index db850479..cf7b2f97 100644 --- a/tests/snippets/scala/test_prepend_operator.txt +++ b/tests/snippets/scala/test_prepend_operator.txt @@ -3,8 +3,8 @@ a +: b ---tokens--- 'a' Name -' ' Text +' ' Text.Whitespace '+:' Operator -' ' Text +' ' Text.Whitespace 'b' Name -'\n' Text +'\n' Text.Whitespace diff --git a/tests/snippets/scala/test_qualified_name.txt b/tests/snippets/scala/test_qualified_name.txt index 8a1f06ff..a004410c 100644 --- a/tests/snippets/scala/test_qualified_name.txt +++ b/tests/snippets/scala/test_qualified_name.txt @@ -7,4 +7,4 @@ a.b.c 'b' Name '.' Punctuation 'c' Name -'\n' Text +'\n' Text.Whitespace diff --git a/tests/snippets/scala/test_qualified_name_class.txt b/tests/snippets/scala/test_qualified_name_class.txt index b9d47c94..7345092a 100644 --- a/tests/snippets/scala/test_qualified_name_class.txt +++ b/tests/snippets/scala/test_qualified_name_class.txt @@ -7,4 +7,4 @@ a.b.C 'b' Name '.' Punctuation 'C' Name.Class -'\n' Text +'\n' Text.Whitespace diff --git a/tests/snippets/scala/test_script_header.txt b/tests/snippets/scala/test_script_header.txt index f15ded80..6d96fd69 100644 --- a/tests/snippets/scala/test_script_header.txt +++ b/tests/snippets/scala/test_script_header.txt @@ -3,4 +3,4 @@ ---tokens--- '#!/usr/bin/scala' Comment.Hashbang -'\n' Text +'\n' Text.Whitespace diff --git a/tests/snippets/scala/test_symbol_followed_by_op.txt b/tests/snippets/scala/test_symbol_followed_by_op.txt index 5d8a14f5..518abce2 100644 --- a/tests/snippets/scala/test_symbol_followed_by_op.txt +++ b/tests/snippets/scala/test_symbol_followed_by_op.txt @@ -4,4 +4,4 @@ symbol* ---tokens--- 'symbol' Name '*' Operator -'\n' Text +'\n' Text.Whitespace diff --git a/tests/snippets/scala/test_symbol_name_ending_with_star.txt b/tests/snippets/scala/test_symbol_name_ending_with_star.txt index bb1d987f..25e5dc63 100644 --- a/tests/snippets/scala/test_symbol_name_ending_with_star.txt +++ b/tests/snippets/scala/test_symbol_name_ending_with_star.txt @@ -3,4 +3,4 @@ symbol_* ---tokens--- 'symbol_*' Name -'\n' Text +'\n' Text.Whitespace diff --git a/tests/snippets/scala/test_underscore_name.txt b/tests/snippets/scala/test_underscore_name.txt index f27754fd..f7a24af1 100644 --- a/tests/snippets/scala/test_underscore_name.txt +++ b/tests/snippets/scala/test_underscore_name.txt @@ -3,10 +3,10 @@ val head = _head ---tokens--- 'val' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'head' Name -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '_head' Name -'\n' Text +'\n' Text.Whitespace |