From 2f78a7bf950cfbf84a47156cb7dfd5da962d4784 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matth=C3=A4us=20G=2E=20Chajdas?= Date: Sun, 4 Dec 2022 15:52:40 +0100 Subject: Improve whitespace handling in the BashLexer. --- tests/examplefiles/bash/example.sh.output | 60 +++++++++++++++---------------- 1 file changed, 30 insertions(+), 30 deletions(-) (limited to 'tests/examplefiles/bash/example.sh.output') diff --git a/tests/examplefiles/bash/example.sh.output b/tests/examplefiles/bash/example.sh.output index ccfc2e71..96f5acb1 100644 --- a/tests/examplefiles/bash/example.sh.output +++ b/tests/examplefiles/bash/example.sh.output @@ -1,29 +1,29 @@ '#!/bin/bash\n' Comment.Hashbang -'\n' Text +'\n' Text.Whitespace 'printf' Name.Builtin -' ' Text +' ' Text.Whitespace '"%d %s\\n"' Literal.String.Double -' ' Text +' ' Text.Whitespace '10' Literal.Number -' ' Text +' ' Text.Whitespace '"foo"' Literal.String.Double -'\n' Text +'\n' Text.Whitespace 'printf' Name.Builtin -' ' Text +' ' Text.Whitespace '"%d %s\\n"' Literal.String.Double -' ' Text +' ' Text.Whitespace '$((' Keyword '10#1' Literal.Number '))' Keyword -' ' Text +' ' Text.Whitespace '"bar"' Literal.String.Double -'\n\n' Text +'\n\n' Text.Whitespace 'let' Name.Builtin -' ' Text +' ' Text.Whitespace '"' Literal.String.Double 'm = 10#' Literal.String.Double '${' Literal.String.Interpol @@ -34,12 +34,12 @@ '2' Name.Variable '}' Literal.String.Interpol '"' Literal.String.Double -'\n' Text +'\n' Text.Whitespace 'echo' Name.Builtin -' ' Text +' ' Text.Whitespace '$m' Name.Variable -'\n\n' Text +'\n\n' Text.Whitespace 'm' Name.Variable '=' Operator @@ -52,9 +52,9 @@ ':' Punctuation '3' Name.Variable '}' Literal.String.Interpol -' ' Text +' ' Text.Whitespace '+' Operator -' ' Text +' ' Text.Whitespace '10#' Literal.Number '${' Literal.String.Interpol '1' Name.Variable @@ -64,12 +64,12 @@ '3' Name.Variable '}' Literal.String.Interpol '))' Keyword -'\n' Text +'\n' Text.Whitespace 'echo' Name.Builtin -' ' Text +' ' Text.Whitespace '$m' Name.Variable -'\n\n' Text +'\n\n' Text.Whitespace 'm' Name.Variable '=' Operator @@ -83,12 +83,12 @@ '3' Name.Variable '}' Literal.String.Interpol '))' Keyword -'\n' Text +'\n' Text.Whitespace 'echo' Name.Builtin -' ' Text +' ' Text.Whitespace '$m' Name.Variable -'\n\n' Text +'\n\n' Text.Whitespace 'm' Name.Variable '=' Operator @@ -96,33 +96,33 @@ '10#' Literal.Number '$1' Name.Variable '))' Keyword -'\n' Text +'\n' Text.Whitespace 'echo' Name.Builtin -' ' Text +' ' Text.Whitespace '$m' Name.Variable -'\n\n' Text +'\n\n' Text.Whitespace 'm' Name.Variable '=' Operator '$((' Keyword '10#1' Literal.Number '))' Keyword -'\n' Text +'\n' Text.Whitespace 'echo' Name.Builtin -' ' Text +' ' Text.Whitespace '$m' Name.Variable -'\n\n' Text +'\n\n' Text.Whitespace 'm' Name.Variable '=' Operator '$((' Keyword '10' Literal.Number '))' Keyword -'\n' Text +'\n' Text.Whitespace 'echo' Name.Builtin -' ' Text +' ' Text.Whitespace '$m' Name.Variable -'\n' Text +'\n' Text.Whitespace -- cgit v1.2.1