Skip to content

Possible Grammars issue - affecting syntax on Coffeescript files #13

@aeschli

Description

@aeschli

From @ConorHiggins on November 4, 2016 2:1

  • VSCode Version: Code 1.7.1 (02611b40b24c9df2726ad8b33f5ef5f67ac30b44, 2016-11-03T13:46:00.226Z)
  • OS Version: Darwin x64 15.6.0
  • Extensions:
Extension Author Version
githistory donjayamanne 0.1.0
sublime-keybindings ms-vscode 1.5.12
stylelint shinnn 0.18.0

Steps to Reproduce:

Paste the following into a new tab and save it as a .coffee file:

define [
    'text!./template.html'
], (
    templateMarkup
) ->
    class SomeVM

        ###  ____       _
            / ___|  ___| |_ _   _ _ __
            \___ \ / _ \ __| | | | '_ \
             ___) |  __/ |_| |_| | |_) |
            |____/ \___|\__|\__,_| .__/
                                 |_|
        # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # ###

        constructor: (params={}) ->
            @somePropName = 'xyz'
            return


        ###  _____                 _     _   _                 _ _
            | ____|_   _____ _ __ | |_  | | | | __ _ _ __   __| | | ___ _ __ ___
            |  _| \ \ / / _ \ '_ \| __| | |_| |/ _` | '_ \ / _` | |/ _ \ '__/ __|
            | |___ \ V /  __/ | | | |_  |  _  | (_| | | | | (_| | |  __/ |  \__ \ - On...
            |_____| \_/ \___|_| |_|\__| |_| |_|\__,_|_| |_|\__,_|_|\___|_|  |___/
        # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # ###


        ### _____
            |  _ \(_)___ _ __ | | __ _ _   _
            | | | | / __| '_ \| |/ _` | | | |
            | |_| | \__ \ |_) | | (_| | |_| |
            |____/|_|___/ .__/|_|\__,_|\__, |
                        |_|            |___/
        # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # ###


        ### __        __         _
            \ \      / /__  _ __| | _____ _ __ ___
             \ \ /\ / / _ \| '__| |/ / _ \ '__/ __|
              \ V  V / (_) | |  |   <  __/ |  \__ \
               \_/\_/ \___/|_|  |_|\_\___|_|  |___/
        # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # ###


        ###  ____            _
            |  _ \  ___  ___| |_ _ __ ___  _   _
            | | | |/ _ \/ __| __| '__/ _ \| | | |
            | |_| |  __/\__ \ |_| | | (_) | |_| |
            |____/ \___||___/\__|_|  \___/ \__, |
                                           |___/
        # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # ###

        dispose: ->
            return

    return {
        viewModel: SomeVM
        template: templateMarkup
    }

Copied from original issue: microsoft/vscode#14953

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