Skip to content

Error when trying to compile files in literate coffeescript (*.litcoffee) #137

@monkeymonk

Description

@monkeymonk

When trying to compile file in .litcoffee Grunt send me an error of syntax:

➜ grunt coffee
Running "coffee:compile" (coffee) task
>> SyntaxError: In src/coffeescript/scripts.litcoffee, reserved word "with" on line 3
Warning: CoffeeScript failed to compile. Use --force to continue.

Aborted due to warnings.

src/coffeescript/scripts.litcoffee:

# Scripts - src/coffeescript/scripts.litcoffee

Martinus agens illas provincias pro praefectis aerumnas innocentium graviter gemens saepeque obsecrans, ut ab omni culpa inmunibus parceretur, cum non inpetraret, minabatur se discessurum: ut saltem id metuens perquisitor malivolus tandem desineret quieti coalitos homines in aperta pericula proiectare.

## Common

    # lot of stuff here...

When I try to compile with sudo coffee -o ../../public/js -j scripts.js -c scripts.litcoffee it works as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions