FlatLang / Flat

(Deprecated) Soon-to-be legacy Flat compiler all in one
6 stars 0 forks source link

Tick marks surrounding text in String literal are incorrectly converted to a LiteralName #412

Closed BSteffaniak closed 2 years ago

BSteffaniak commented 2 years ago
let mainClassTestFileContents = "import flat/test/Testing\n
\n
        import static novex/nest/Nest\n
\n
        testable class {\n
        \ttest `can create`() {\n
        \t\tlet value = Testing()\n
\n
        \t\texpect(value).toNotBe(null)\n
        \t}\n
        }\n".replace("\t", "  ")

produces the String:

import flat/test/Testing

import static novex/nest/Nest

testable class {
  test can_create() {
    let value = Testing()

    expect(value).toNotBe(null)
  }
}

when it should produce:

import flat/test/Testing

import static novex/nest/Nest

testable class {
  test `can create`() {
    let value = Testing()

    expect(value).toNotBe(null)
  }
}