Skip to content

Unterminated string inside action yields non-obvious error #105

@bottle2

Description

@bottle2

Hello.

On MSYS2:

Nero@DESKTOP-QIBT7ND CLANG64 ~
$ ragel -v
Ragel State Machine Compiler version 6.10 March 2017
Copyright (c) 2001-2009 by Adrian Thurston

Nero@DESKTOP-QIBT7ND CLANG64 ~
$ cat action-braces-mre.rl
%% machine mre;
%% action oopsie { puts("woopsie); }
%% main := "doopsie";

Nero@DESKTOP-QIBT7ND CLANG64 ~
$ ragel action-braces-mre.rl
<EOF>:0: at token Parser_tk_eof: parse error

On Android:

~ $ ragel -v
Ragel State Machine Compiler version 7.0.4 February 2021
Copyright (c) 2001-2021 by Dr. Adrian D. Thurston et al.
~ $ cat mre.rl
%% machine mre;
%% action oopsie { puts("woopsie); }




%% main := "doopsie";
~ $ ragel mre.rl
mre.rl:8:1: parse error
~ $

normal people would see that half their code is purple and then fix the error, but my syntax highlight is off :(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions