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.

Ignore keywords in regular pragmas

See original GitHub issue

Repro:

  • Consider following source fragment:
    {-# OPTIONS_GHC -fno-warn-type-defaults #-}
    

Expected: type is not highlighted as keyword

Instead: image

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
ice1000commented, Nov 30, 2018

Well, at least the color is no longer orange…

0reactions
ice1000commented, Feb 17, 2019

Let’s re-open this @rikvdkleij.

My local dev branch resolves this in an ideal way, I hope I can re-close this issue in the PR 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pragma directives and the __pragma and _Pragma keywords
A pragma string that isn't recognized is ignored. The following code example demonstrates how the _Pragma keyword could be used in an assert- ......
Read more >
Pragmas
The variable keyword identifies the specific directive; a indicates an argument. The pragma keywords that are recognized by the Sun WorkShop C++ compiler...
Read more >
Pragmas - ABAP Keyword Documentation - SAP Help Portal
This pragma can be used to hide a syntax warning in a method definition that warns that a predefined function is obscured. The...
Read more >
Pragmas (The C Preprocessor)
The ' #pragma ' directive is the method specified by the C standard for providing additional information to the compiler, beyond what is...
Read more >
Pragma statements supported by SQLite
In some pragmas, the schema name is meaningless and is simply ignored. In the documentation below, pragmas for which the schema name is...
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