Repository navigation
Would be great if multiline strings were categorized differently #2005
Description
Activity
DanielRosenwasser commented
on Feb 11, 2015 MemberMore actions#1744 has a fix for this.
basarat commented
on Feb 11, 2015 ContributorAuthorMore actionsDaniel Rosenwasser (@DanielRosenwasser) perhaps you can quickly tell me what
classifyKeywordsInGenericsis supposed to do. Just a hint on if I should keep ittrueorfalsebasarat commented
on Feb 11, 2015 ContributorAuthorMore actionsDaniel Rosenwasser (@DanielRosenwasser) also is there some public API endpoint to get thesyntacticClassifier?Nevermind, got the answer: #1477 (comment)
DanielRosenwasser commented
on Feb 11, 2015 MemberMore actionsBasarat Ali Syed (@basarat) if you'll see my change, it's been renamed to
syntacticClassifierAbsent.Before the syntactic classifier was a thing, the lexical classifier had to do a bunch of hacky sort of tricks to try to emulate correct behavior.
Basically, you don't want to accidentally classify
numberas a keyword as a type parameter when it might just be a plain identifier after a less-than token. The syntactic classifier will overwrite this to be the correct thing (i.e. an identifier) and so you'll get flashing. However, if there is no syntactic classifier, the lexical classifier should use its awful tricks again.Actually, you're using web workers for Atom right? Are you using the other classifiers?
basarat commented
on Feb 11, 2015 ContributorAuthorMore actionsyou're using web workers for Atom right?
Nope. A child process : https://github.com/TypeStrong/atom-typescript/blob/master/CONTRIBUTING.md#architecture . Node-webworker's need C/C++ toolchain on the client to install so I just went with a child process to make it easier to install.
Are you using the other classifiers?
nope. Just a lexical classifier : https://github.com/TypeStrong/atom-typescript/blob/master/lib/main/atom/typescriptGrammar.ts#L47, so I'll make it
true. Thanks :)basarat commented
on Feb 11, 2015 ContributorAuthorMore actionsReason for not using webworkers : electron/electron#797
DanielRosenwasser commented
on Feb 11, 2015 MemberMore actionsI just realized, you're asking for a multiline string classification. What if it's just a string literal classification but it's done correctly?
basarat commented
on Feb 11, 2015 ContributorAuthorMore actionsbasarat commented
on Feb 12, 2015 ContributorAuthorMore actionsDaniel Rosenwasser (@DanielRosenwasser) fixed? Or wont-fix ❤️
DanielRosenwasser commented
on Feb 13, 2015 MemberMore actionsIf we do this I don't have to buy you chocolates for Valentine's Day. ❤️
(Will fix, but unfortunately just for 1.5: #2026. I guess I'll reopen just to track this as an issue.)
DanielRosenwasser commented
on Feb 13, 2015 MemberMore actionsThe fix is in
master.- addedFixedA PR has been merged for this issueA PR has been merged for this issue
on Feb 13, 2015 - locked and limited conversation to collaborators
on Jun 18, 2018


As it stands, the default classification looks horrible
I would be happy if there was just
InMultiLineString(notice I don't sayLiteral) + it gets classified asMultilineStringCurrent:
Note: feel free to call it something other than
MultiLineStringbut give us something.