Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLOSED] Can't toggle comments in Lua #9721

Open
core-ai-bot opened this issue Aug 30, 2021 · 2 comments
Open

[CLOSED] Can't toggle comments in Lua #9721

core-ai-bot opened this issue Aug 30, 2021 · 2 comments

Comments

@core-ai-bot
Copy link
Member

Issue by ThaisRobba
Wednesday May 13, 2015 at 01:13 GMT
Originally opened as adobe/brackets#11097


This is a pesky bug.

  1. Open any .lua file
  2. Type anything (can be a simple local a = 10)
  3. Try to comment it out using the Ctrl+/ shortcut
  4. Nothing happens

Tested under OS X Yosemite, Ubuntu 14.10 and Arch Linux (latest), on three different machines.

@core-ai-bot
Copy link
Member Author

Comment by sbruchmann
Wednesday May 13, 2015 at 01:46 GMT


Here’s the stack trace:

Uncaught SyntaxError: Invalid regular expression: /^\s*\-\-($|[^\[]|[[^\[]|[$)/:
    Unterminated character class    EditorCommandHandlers.js:70
    _createSpecialLineExp           EditorCommandHandlers.js:70  
    (anonymous function)            EditorCommandHandlers.js:89
    _createLineExpressions          EditorCommandHandlers.js:84
    _getLineCommentPrefix           EditorCommandHandlers.js:190
    (anonymous function)            EditEditorCommandHandlers.js:592
    St                              lodash.js:23
    _getLineCommentEdits            EditorCommandHandlers.js:584
    lineComment                     EditorCommandHandlers.js:616
    Command.execute                 CommandManager.js:97
    execute                         CommandManager.js:291
    executeCommand                  ShellAPI.js:66

@core-ai-bot
Copy link
Member Author

Comment by rroshan1
Thursday May 14, 2015 at 05:17 GMT


Verified the fix with the latest branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant