Kakoune: nix.kak parse a certain nested string expression incorrectly

Created on 4 Nov 2020  路  1Comment  路  Source: mawww/kakoune

Steps

Open test.nix with the content below:

f = x: ''
  ${g ({y}: ''
  '') 0}
'';

(the real world example: https://github.com/NixOS/nixpkgs/blob/a5f5d020c69c22ddc6be48123ef4d30fd262c403/pkgs/development/compilers/graalvm/default.nix#L11-L86)

Outcome

The nested string is highlighted incorrectly.

image

Expected

The text from '' in line 1 to '' in line 4 is recognized as a single string.

bug

>All comments

I think this is the same issue as #1670.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fennewald picture fennewald  路  3Comments

alexherbo2 picture alexherbo2  路  3Comments

notramo picture notramo  路  3Comments

lenormf picture lenormf  路  4Comments

vbauerster picture vbauerster  路  3Comments