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] Fixed: LanguageManager shouldn't throw exceptions #2854

Open
core-ai-bot opened this issue Aug 29, 2021 · 11 comments
Open

[CLOSED] Fixed: LanguageManager shouldn't throw exceptions #2854

core-ai-bot opened this issue Aug 29, 2021 · 11 comments

Comments

@core-ai-bot
Copy link
Member

Issue by DennisKehrig
Monday Mar 04, 2013 at 17:21 GMT
Originally opened as adobe/brackets#3034


Fix for #2967


DennisKehrig included the following code: https://github.com/adobe/brackets/pull/3034/commits

@core-ai-bot
Copy link
Member Author

Comment by jasonsanjose
Monday Mar 11, 2013 at 19:56 GMT


Reviewing

@core-ai-bot
Copy link
Member Author

Comment by jasonsanjose
Monday Mar 11, 2013 at 20:18 GMT


Initial review complete

@core-ai-bot
Copy link
Member Author

Comment by DennisKehrig
Wednesday Mar 13, 2013 at 10:23 GMT


@jasonsanjose Thanks for the review! I fixed the problems you found.

@core-ai-bot
Copy link
Member Author

Comment by DennisKehrig
Wednesday Mar 13, 2013 at 10:29 GMT


@jasonsanjose JSHint doesn't like my code, but JSLint does. Should we configure JSHint with "laxbreak: true" or should I update my code? Not sure how, though, I wouldn't want all this to be in one line:

    if (!language._setId(id)
            || !language._setName(name)
            || (blockComment && !language.setBlockCommentSyntax(blockComment[0], blockComment[1]))
            || (lineComment && !language.setLineCommentSyntax(lineComment))
            ) {

@core-ai-bot
Copy link
Member Author

Comment by TomMalbran
Wednesday Mar 13, 2013 at 11:00 GMT


How about this?

if (!language._setId(id) || !language._setName(name) ||
        (blockComment && !language.setBlockCommentSyntax(blockComment[0], blockComment[1])) ||
        (lineComment && !language.setLineCommentSyntax(lineComment))) {

Looks and works in jshint.org and JSLint.

@core-ai-bot
Copy link
Member Author

Comment by DennisKehrig
Wednesday Mar 13, 2013 at 12:32 GMT


@TomMalbran Looks good to me, thanks!

@core-ai-bot
Copy link
Member Author

Comment by jasonsanjose
Wednesday Mar 13, 2013 at 19:35 GMT


Changes look good. Just need to fix the merge conflict.

@core-ai-bot
Copy link
Member Author

Comment by DennisKehrig
Tuesday Mar 19, 2013 at 15:48 GMT


Supposedly the Chinese translation was changed by this... I'll try rebasing.

@core-ai-bot
Copy link
Member Author

Comment by DennisKehrig
Tuesday Mar 19, 2013 at 15:59 GMT


Looking better.

@core-ai-bot
Copy link
Member Author

Comment by DennisKehrig
Tuesday Mar 19, 2013 at 20:50 GMT


Purified version - no more messing with .gitattributes. Thanks@TomMalbran!

@core-ai-bot
Copy link
Member Author

Comment by jasonsanjose
Tuesday Mar 19, 2013 at 22:56 GMT


Confirmed unit tests pass after trying a test merge with master. Merging. Thanks for your patience@DennisKehrig.

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