question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

enh(c) Update keyword list for C11/C18

See original GitHub issue

Pulling this out because we should eventually apply this to our C grammar (removing the C++ keywords and types, etc).


The full list of keywords for C11/C18 is

                auto                          if                             unsigned
                break                         inline                         void
                case                          int                            volatile
                char                          long                           while
                const                         register                       _Alignas
                continue                      restrict                       _Alignof
                default                       return                         _Atomic
                do                            short                          _Bool
                double                        signed                         _Complex
                else                          sizeof                         _Generic
                enum                          static                         _Imaginary
                extern                        struct                         _Noreturn
                float                         switch                         _Static_assert
                for                           typedef                        _Thread_local
                goto                          union

_Originally posted by @ztane in https://github.com/highlightjs/highlight.js/issues/2973#issuecomment-779284055_

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
klmrcommented, Feb 21, 2021

No namespaces, no.

And that begin rule is pure C++, not C.

0reactions
klmrcommented, Mar 26, 2021

They’re types, yes, but they’re also keywords (unlike e.g. bool, which in C is an alias for _Bool, but only if the stdbool.h header is included — otherwise it’s just any old identifier). https://en.cppreference.com/w/c/keyword is a good reference.

(Apologies for the lack of activity, I’m still snowed under with two other projects that unfortunately take priority and take up all my nominal “free time”.)

Read more comments on GitHub >

github_iconTop Results From Across the Web

highlight.js
enh (c) Update keyword list for C11/C18 (#3010) Josh Goebel; enh(parser) highlight object properties (#3072) Josh Goebel; enh(javascript/typescript) highlight ...
Read more >
Keyword — Elixir v1.12.3 - HexDocs
A keyword list is a list that consists exclusively of two-element tuples. The first element of these tuples is known as the key,...
Read more >
269 contributors - GitHub
... enh(c) Update keyword list for C11/C18 (#3010) Josh Goebel; enh(parser) highlight object properties (#3072) Josh Goebel; enh(javascript/typescript) ...
Read more >
Update Keyword - Ads API - Google Developers
import java.io.FileNotFoundException; import java.io.IOException; /** * Updates a keyword ({@code AdGroupCriterion}) in an ad group. To get keywords, run
Read more >
FAQs Instructions - ScholarOne Ideas
How do I make a suggestion for an improvement or an enhancement to ScholarOne ... How do I update keywords and prepare a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found