Bug 5881 – Spellchecker should include built-in keywords
Status
RESOLVED
Resolution
WONTFIX
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2011-04-24T13:40:42Z
Last change time
2020-03-21T03:56:35Z
Keywords
diagnostic
Assigned to
No Owner
Creator
kennytm
Comments
Comment #0 by kennytm — 2011-04-24T13:40:42Z
The spellchecker in DMD currently only checks for custom identifiers. But is it possible to misspell built-in keywords as well, e.g.
pramga(msg, "x");
// ^^
Perhaps the spellchecker could include the keywords to the look-up list as well.
Comment #1 by lt.infiltrator — 2014-03-19T17:43:00Z
Everyone: is there a singular list of all the keywords somewhere?
Comment #2 by yebblies — 2014-03-21T05:02:06Z
(In reply to comment #1)
> Everyone: is there a singular list of all the keywords somewhere?
Inside the compiler or one of the alternative lexers.
I think this is of questionable value - basic syntax highlighting makes this unnecessary.
Comment #3 by bearophile_hugs — 2014-03-21T05:33:08Z
(In reply to comment #2)
> I think this is of questionable value
See also Issue 6946
Comment #4 by b2.temp — 2020-02-20T16:20:02Z
that's not a good idea. The spell checker is a help to fix typo in **identifiers** so if you add keyword proposal people will end up being proposed to use a keyword that would not work !
there is only `pragma` and `assert` BTW who have a CallExp like syntax.