[gtksourceview: 1/2] cpp.lang: remove redundant keywords




commit 0f03a509ddb966ecbce4077035647597fe856775
Author: Elias Aebi <353-eyelash users noreply gitlab gnome org>
Date:   Wed Dec 8 11:57:16 2021 +0100

    cpp.lang: remove redundant keywords

 data/language-specs/c.lang   | 3 +--
 data/language-specs/cpp.lang | 9 ---------
 2 files changed, 1 insertion(+), 11 deletions(-)
---
diff --git a/data/language-specs/c.lang b/data/language-specs/c.lang
index b9de0340..96489321 100644
--- a/data/language-specs/c.lang
+++ b/data/language-specs/c.lang
@@ -222,10 +222,9 @@
     </context>
 
     <context id="types" style-ref="type">
-      <keyword>_Bool</keyword>
+      <keyword>(_B|b)ool</keyword>
       <keyword>_Complex</keyword>
       <keyword>_Imaginary</keyword>
-      <keyword>bool</keyword>
       <keyword>char</keyword>
       <keyword>char(16|32)_t</keyword>
       <keyword>double(_t)?</keyword>
diff --git a/data/language-specs/cpp.lang b/data/language-specs/cpp.lang
index ff63f3b8..8f350c10 100644
--- a/data/language-specs/cpp.lang
+++ b/data/language-specs/cpp.lang
@@ -48,8 +48,6 @@
                 </context>
 
                 <context id="keywords" style-ref="keyword">
-                    <keyword>alignas</keyword>
-                    <keyword>alignof</keyword>
                     <keyword>and</keyword>
                     <keyword>and_eq</keyword>
                     <keyword>bitand</keyword>
@@ -67,7 +65,6 @@
                     <keyword>delete</keyword>
                     <keyword>dynamic_cast</keyword>
                     <keyword>export</keyword>
-                    <keyword>false</keyword>
                     <keyword>final</keyword>
                     <keyword>friend</keyword>
                     <keyword>import</keyword>
@@ -91,7 +88,6 @@
                     <keyword>this</keyword>
                     <keyword>thread_local</keyword>
                     <keyword>throw</keyword>
-                    <keyword>true</keyword>
                     <keyword>try</keyword>
                     <keyword>typeid</keyword>
                     <keyword>using</keyword>
@@ -106,14 +102,9 @@
                 </context>
 
                 <context id="types" style-ref="type">
-                    <keyword>bool</keyword>
-                    <keyword>char16_t</keyword>
-                    <keyword>char32_t</keyword>
                     <keyword>explicit</keyword>
-                    <keyword>inline</keyword>
                     <keyword>mutable</keyword>
                     <keyword>nullptr_t</keyword>
-                    <keyword>wchar_t</keyword>
                 </context>
 
                 <context id="common-defines" style-ref="common-defines">


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]