Skip to content

Commit

Permalink
Add filetype:objc and filetype:objc++
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmyczko authored and stapelberg committed May 15, 2017
1 parent 4f3d137 commit f33e380
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions ranking/opts.go
Expand Up @@ -61,6 +61,15 @@ func addSuffixesForFiletype(suffixes *map[string]float32, filetype string) {
case "c":
(*suffixes)[".c"] = 0.75
(*suffixes)[".h"] = 0.75
case "objc":
(*suffixes)[".m"] = 0.75
(*suffixes)[".h"] = 0.75
(*suffixes)[".c"] = 0.75
case "objc++":
(*suffixes)[".mm"] = 0.75
(*suffixes)[".cc"] = 0.75
(*suffixes)[".cpp"] = 0.75
(*suffixes)[".h"] = 0.75
case "c++":
(*suffixes)[".cpp"] = 0.75
(*suffixes)[".cxx"] = 0.75
Expand Down
2 changes: 1 addition & 1 deletion static/faq.html
Expand Up @@ -47,7 +47,7 @@ <h1>Debian Code Search FAQ</h1>
Filters file names according to their extension.<br>
To find source code dealing with XMPP written in Perl, you could search for "<tt>XMPP
filetype:perl</tt>".<br>
The currently supported file types are c, c++, perl, python, go, java, ruby, shell, vala, javascript, json.
The currently supported file types are c, c++, objc, objc++, perl, python, go, java, ruby, shell, vala, javascript, json.
</dd>
<dt><tt>package</tt> (or <tt>pkg</tt>)</dt>
<dd>
Expand Down

0 comments on commit f33e380

Please sign in to comment.