Browse Source

[enh] add cpp language rewrite rule

Adam Tauber 10 years ago
parent
commit
6503fdf2aa
1 changed files with 2 additions and 1 deletions
  1. 2 1
      searx/engines/searchcode_code.py

+ 2 - 1
searx/engines/searchcode_code.py

@@ -23,7 +23,8 @@ search_url = url+'api/codesearch_I/?{query}&p={pageno}'
 # special code-endings which are not recognised by the file ending
 # special code-endings which are not recognised by the file ending
 code_endings = {'cs': 'c#',
 code_endings = {'cs': 'c#',
                 'h': 'c',
                 'h': 'c',
-                'hpp': 'cpp'}
+                'hpp': 'cpp',
+                'cxx': 'cpp'}
 
 
 
 
 # do search-request
 # do search-request