Skip to main content
added 5 characters in body; edited tags
Source Link
Drew
  • 79.1k
  • 10
  • 123
  • 257

Flyspell does a great job ignoring all the source code and only check comments, with one flow;flaw: it still does check the text after #includes#includes. So the iostreamiostream here does get highlighted:

#include <iostream>

I tried to add the includes to the skip regions, with no success:

(add-to-list 'ispell-skip-region-alist '("[^#include.*$]"))

Did I write it wrong? Or am I missing a different setting?

Flyspell does a great job ignoring all the source code and only check comments, with one flow; it still does check the text after #includes. So the iostream here does get highlighted:

#include <iostream>

I tried to add the includes to the skip regions with no success:

(add-to-list 'ispell-skip-region-alist '("[^#include.*$]"))

Did I write it wrong? Or am I missing a different setting?

Flyspell does a great job ignoring all the source code and only check comments, with one flaw: it still does check the text after #includes. So the iostream here does get highlighted:

#include <iostream>

I tried to add the includes to the skip regions, with no success:

(add-to-list 'ispell-skip-region-alist '("[^#include.*$]"))

Did I write it wrong? Or am I missing a different setting?

Source Link
SFbay007
  • 584
  • 4
  • 14

Make flyspell avoid checking #includes in C++

Flyspell does a great job ignoring all the source code and only check comments, with one flow; it still does check the text after #includes. So the iostream here does get highlighted:

#include <iostream>

I tried to add the includes to the skip regions with no success:

(add-to-list 'ispell-skip-region-alist '("[^#include.*$]"))

Did I write it wrong? Or am I missing a different setting?