Nosfe also likes to place assignments with colons. Fixed assignment symbol detection (again :-/).

This commit is contained in:
2021-07-16 14:13:29 +02:00
parent 213150e51f
commit d53a1fbac8
10 changed files with 380 additions and 329 deletions
@@ -20,7 +20,17 @@ internal class AssignmentTest : AbstractParsingTest() {
@Test
internal fun assignment_with_local_label(@MyTestCase testCase: ParsingTestExtension.IParsingTestCase) {
testGoodSyntax(testCase, "FOO=.local-.bar\n")
testGoodSyntax(testCase, "FOO= .local-.bar\n")
}
@Test
internal fun assignment_with_colon(@MyTestCase testCase: ParsingTestExtension.IParsingTestCase) {
testGoodSyntax(testCase, "FOO: = 123\n")
}
@Test
internal fun assignment_with_colon_and_set(@MyTestCase testCase: ParsingTestExtension.IParsingTestCase) {
testGoodSyntax(testCase, "FOO: set 123\n")
}
@Test