summaryrefslogtreecommitdiffstats
path: root/tests/snippets/ruby/test_escaped_bracestring.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/snippets/ruby/test_escaped_bracestring.txt')
-rw-r--r--tests/snippets/ruby/test_escaped_bracestring.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/snippets/ruby/test_escaped_bracestring.txt b/tests/snippets/ruby/test_escaped_bracestring.txt
new file mode 100644
index 0000000..14718b9
--- /dev/null
+++ b/tests/snippets/ruby/test_escaped_bracestring.txt
@@ -0,0 +1,19 @@
+---input---
+str.gsub(%r{\\\\}, "/")
+
+---tokens---
+'str' Name
+'.' Operator
+'gsub' Name
+'(' Punctuation
+'%r{' Literal.String.Regex
+'\\\\' Literal.String.Regex
+'\\\\' Literal.String.Regex
+'}' Literal.String.Regex
+',' Punctuation
+' ' Text.Whitespace
+'"' Literal.String.Double
+'/' Literal.String.Double
+'"' Literal.String.Double
+')' Punctuation
+'\n' Text.Whitespace