cairo icon indicating copy to clipboard operation
cairo copied to clipboard

bug: Cairo language server breaks syntax highlighting with multiline strings

Open Draggu opened this issue 11 months ago • 0 comments

Bug Report

Cairo version: 2.6.3

Current behavior:

Multiline strings "" and short strings '' break syntax highlighting after them

Expected behavior:

Correct syntax highlighting with multiline strings

Steps to reproduce:

Use multiline string

Related code:

fn main() -> u32 {
    let _ = "
    ";
    fib(16)
}

fn fib(mut n: u32) -> u32 {
    let mut a: u32 = 0;
    let mut b: u32 = 1;
    while n != 0 {
        n = n - 1;
        let temp = b;
        b = a + b;
        a = temp;
    };
    a
}

Other information:

Draggu avatar Mar 20 '24 17:03 Draggu