summaryrefslogtreecommitdiff
path: root/tests/snippets
diff options
context:
space:
mode:
authorMatthäus G. Chajdas <dev@anteru.net>2022-12-04 20:12:15 +0100
committerMatthäus G. Chajdas <dev@anteru.net>2022-12-04 20:12:15 +0100
commita3cb36577d937654f604b245e7f71ed00195ceeb (patch)
tree765b604eceb30f9d3af4a285109b5c0745f41fb1 /tests/snippets
parent389afc6bf69839e2a2b34cedf9f7e87760d124f9 (diff)
downloadpygments-git-a3cb36577d937654f604b245e7f71ed00195ceeb.tar.gz
Improve whitespace handling in PraatLexer.
Diffstat (limited to 'tests/snippets')
-rw-r--r--tests/snippets/praat/test_broken_unquoted_string.txt8
-rw-r--r--tests/snippets/praat/test_function_call.txt4
-rw-r--r--tests/snippets/praat/test_inline_if.txt22
-rw-r--r--tests/snippets/praat/test_interpolated_indexed_numeric_with_precision.txt2
-rw-r--r--tests/snippets/praat/test_interpolated_local_numeric_with_precision.txt2
-rw-r--r--tests/snippets/praat/test_interpolated_numeric_hash.txt2
-rw-r--r--tests/snippets/praat/test_interpolated_numeric_indexed.txt2
-rw-r--r--tests/snippets/praat/test_interpolated_numeric_with_precision.txt2
-rw-r--r--tests/snippets/praat/test_interpolated_string_hash.txt2
-rw-r--r--tests/snippets/praat/test_interpolated_string_indexed.txt2
-rw-r--r--tests/snippets/praat/test_interpolation_boundary.txt6
-rw-r--r--tests/snippets/praat/test_numeric_assignment.txt6
-rw-r--r--tests/snippets/praat/test_string_assignment.txt6
-rw-r--r--tests/snippets/praat/test_string_escaped_quotes.txt2
14 files changed, 34 insertions, 34 deletions
diff --git a/tests/snippets/praat/test_broken_unquoted_string.txt b/tests/snippets/praat/test_broken_unquoted_string.txt
index 573b8079..01449c85 100644
--- a/tests/snippets/praat/test_broken_unquoted_string.txt
+++ b/tests/snippets/praat/test_broken_unquoted_string.txt
@@ -4,13 +4,13 @@ printline string
---tokens---
'printline' Keyword
-' ' Text
+' ' Text.Whitespace
'string' Literal.String
'\n' Text
'...' Punctuation
-' ' Text
+' ' Text.Whitespace
"'interpolated'" Literal.String.Interpol
-' ' Text
+' ' Text.Whitespace
'string' Literal.String
-'\n' Text
+'\n' Text.Whitespace
diff --git a/tests/snippets/praat/test_function_call.txt b/tests/snippets/praat/test_function_call.txt
index ebb24a63..7edb1916 100644
--- a/tests/snippets/praat/test_function_call.txt
+++ b/tests/snippets/praat/test_function_call.txt
@@ -8,7 +8,7 @@ selected("Sound", i+(a*b))
'Sound' Literal.String
'"' Literal.String
',' Punctuation
-' ' Text
+' ' Text.Whitespace
'i' Text
'+' Operator
'(' Text
@@ -17,4 +17,4 @@ selected("Sound", i+(a*b))
'b' Text
')' Text
')' Punctuation
-'\n' Text
+'\n' Text.Whitespace
diff --git a/tests/snippets/praat/test_inline_if.txt b/tests/snippets/praat/test_inline_if.txt
index 02b10a5b..e3702630 100644
--- a/tests/snippets/praat/test_inline_if.txt
+++ b/tests/snippets/praat/test_inline_if.txt
@@ -3,25 +3,25 @@ var = if true == 1 then -1 else 0 fi
---tokens---
'var' Text
-' ' Text
+' ' Text.Whitespace
'=' Operator
-' ' Text
+' ' Text.Whitespace
'if' Keyword
-' ' Text
+' ' Text.Whitespace
'true' Text
-' ' Text
+' ' Text.Whitespace
'==' Operator
-' ' Text
+' ' Text.Whitespace
'1' Literal.Number
-' ' Text
+' ' Text.Whitespace
'then' Keyword
-' ' Text
+' ' Text.Whitespace
'-' Operator
'1' Literal.Number
-' ' Text
+' ' Text.Whitespace
'else' Keyword
-' ' Text
+' ' Text.Whitespace
'0' Literal.Number
-' ' Text
+' ' Text.Whitespace
'fi' Keyword
-'\n' Text
+'\n' Text.Whitespace
diff --git a/tests/snippets/praat/test_interpolated_indexed_numeric_with_precision.txt b/tests/snippets/praat/test_interpolated_indexed_numeric_with_precision.txt
index 82849ee8..0dc23e64 100644
--- a/tests/snippets/praat/test_interpolated_indexed_numeric_with_precision.txt
+++ b/tests/snippets/praat/test_interpolated_indexed_numeric_with_precision.txt
@@ -3,4 +3,4 @@
---tokens---
"'a[3]:3'" Literal.String.Interpol
-'\n' Text
+'\n' Text.Whitespace
diff --git a/tests/snippets/praat/test_interpolated_local_numeric_with_precision.txt b/tests/snippets/praat/test_interpolated_local_numeric_with_precision.txt
index 651509bf..515fa9eb 100644
--- a/tests/snippets/praat/test_interpolated_local_numeric_with_precision.txt
+++ b/tests/snippets/praat/test_interpolated_local_numeric_with_precision.txt
@@ -3,4 +3,4 @@
---tokens---
"'a.a:3'" Literal.String.Interpol
-'\n' Text
+'\n' Text.Whitespace
diff --git a/tests/snippets/praat/test_interpolated_numeric_hash.txt b/tests/snippets/praat/test_interpolated_numeric_hash.txt
index 419faa1a..3d6d0f88 100644
--- a/tests/snippets/praat/test_interpolated_numeric_hash.txt
+++ b/tests/snippets/praat/test_interpolated_numeric_hash.txt
@@ -3,4 +3,4 @@
---tokens---
'\'a["b"]\'' Literal.String.Interpol
-'\n' Text
+'\n' Text.Whitespace
diff --git a/tests/snippets/praat/test_interpolated_numeric_indexed.txt b/tests/snippets/praat/test_interpolated_numeric_indexed.txt
index 3cd1b422..ea436f14 100644
--- a/tests/snippets/praat/test_interpolated_numeric_indexed.txt
+++ b/tests/snippets/praat/test_interpolated_numeric_indexed.txt
@@ -3,4 +3,4 @@
---tokens---
"'a[3]'" Literal.String.Interpol
-'\n' Text
+'\n' Text.Whitespace
diff --git a/tests/snippets/praat/test_interpolated_numeric_with_precision.txt b/tests/snippets/praat/test_interpolated_numeric_with_precision.txt
index 800ac35d..8ab410dc 100644
--- a/tests/snippets/praat/test_interpolated_numeric_with_precision.txt
+++ b/tests/snippets/praat/test_interpolated_numeric_with_precision.txt
@@ -3,4 +3,4 @@
---tokens---
"'a:3'" Literal.String.Interpol
-'\n' Text
+'\n' Text.Whitespace
diff --git a/tests/snippets/praat/test_interpolated_string_hash.txt b/tests/snippets/praat/test_interpolated_string_hash.txt
index 608873d2..49f5147c 100644
--- a/tests/snippets/praat/test_interpolated_string_hash.txt
+++ b/tests/snippets/praat/test_interpolated_string_hash.txt
@@ -3,4 +3,4 @@
---tokens---
'\'a$["b"]\'' Literal.String.Interpol
-'\n' Text
+'\n' Text.Whitespace
diff --git a/tests/snippets/praat/test_interpolated_string_indexed.txt b/tests/snippets/praat/test_interpolated_string_indexed.txt
index a50b5d16..7a845d74 100644
--- a/tests/snippets/praat/test_interpolated_string_indexed.txt
+++ b/tests/snippets/praat/test_interpolated_string_indexed.txt
@@ -3,4 +3,4 @@
---tokens---
"'a$[3]'" Literal.String.Interpol
-'\n' Text
+'\n' Text.Whitespace
diff --git a/tests/snippets/praat/test_interpolation_boundary.txt b/tests/snippets/praat/test_interpolation_boundary.txt
index d125e829..1f3b14bc 100644
--- a/tests/snippets/praat/test_interpolation_boundary.txt
+++ b/tests/snippets/praat/test_interpolation_boundary.txt
@@ -5,10 +5,10 @@
'"' Literal.String
"'" Literal.String
'"' Literal.String
-' ' Text
+' ' Text.Whitespace
'+' Operator
-' ' Text
+' ' Text.Whitespace
'"' Literal.String
"'" Literal.String
'"' Literal.String
-'\n' Text
+'\n' Text.Whitespace
diff --git a/tests/snippets/praat/test_numeric_assignment.txt b/tests/snippets/praat/test_numeric_assignment.txt
index ed954568..55fc1e6b 100644
--- a/tests/snippets/praat/test_numeric_assignment.txt
+++ b/tests/snippets/praat/test_numeric_assignment.txt
@@ -3,9 +3,9 @@ var = -15e4
---tokens---
'var' Text
-' ' Text
+' ' Text.Whitespace
'=' Operator
-' ' Text
+' ' Text.Whitespace
'-' Operator
'15e4' Literal.Number
-'\n' Text
+'\n' Text.Whitespace
diff --git a/tests/snippets/praat/test_string_assignment.txt b/tests/snippets/praat/test_string_assignment.txt
index 0e1a86ef..baff23db 100644
--- a/tests/snippets/praat/test_string_assignment.txt
+++ b/tests/snippets/praat/test_string_assignment.txt
@@ -3,10 +3,10 @@ var$ = "foo"
---tokens---
'var$' Text
-' ' Text
+' ' Text.Whitespace
'=' Operator
-' ' Text
+' ' Text.Whitespace
'"' Literal.String
'foo' Literal.String
'"' Literal.String
-'\n' Text
+'\n' Text.Whitespace
diff --git a/tests/snippets/praat/test_string_escaped_quotes.txt b/tests/snippets/praat/test_string_escaped_quotes.txt
index 6867a312..1cf6330f 100644
--- a/tests/snippets/praat/test_string_escaped_quotes.txt
+++ b/tests/snippets/praat/test_string_escaped_quotes.txt
@@ -10,4 +10,4 @@
'"' Literal.String
'"' Literal.String
'"' Literal.String
-'\n' Text
+'\n' Text.Whitespace