Kaynağa Gözat

[enh] add cpp language rewrite rule

Adam Tauber 10 yıl önce
ebeveyn
işleme
6503fdf2aa
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2
    1
      searx/engines/searchcode_code.py

+ 2
- 1
searx/engines/searchcode_code.py Dosyayı Görüntüle

23
 # special code-endings which are not recognised by the file ending
23
 # special code-endings which are not recognised by the file ending
24
 code_endings = {'cs': 'c#',
24
 code_endings = {'cs': 'c#',
25
                 'h': 'c',
25
                 'h': 'c',
26
-                'hpp': 'cpp'}
26
+                'hpp': 'cpp',
27
+                'cxx': 'cpp'}
27
 
28
 
28
 
29
 
29
 # do search-request
30
 # do search-request