New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enh(autodetect) multiple autodetect fixes #2745
Commits on Nov 15, 2020
-
-
-
fix(autodetect) improve rule matcher
- can start with `*` (css hacks) - can include a comment after attribute name before : (css hacks)
-
enh(autodetect) csharp: improve autodetection
- `value` is too common variable name to score points as keyword - reduce 2x relevance for beginKeywords - bump csharp relevance slightly
-
enh(autodetect) clojure: reduce runaway relevance
- operators get 0 relevance (consistency: no other grammars score them) - "name" gets 0 relevance since almost any identifier will match This reduces false positives in the language-detection.el rosetta data set significantly.
-
-
- Add relevance for groovy shebang line - Ternary should not grant extra relevance
-
enh(autodetect) lisp: tune relevancy
- "name" gets 0 relevance since almost any identifier will match Applying same logic as used with Clojure.
-
enh(autodetect) php: improve auto-detection
- only count => in `fn` context - prevent beginKeywords double relevancy - reduce relevance of `match`
-
-
-
-
enh(autodetect) ruby improvements
- add `__FILE__` to keywords - add `proc` and `lambda` Kernel methods to build_ins - stricter rule for identifying method definition - highlight variables - `|` style params now get no relevance (can be too many other things) - add SHEBANG rule - make Ruby REPL matching a little stricter
-
-
enh(autodetect) vbscript: improve auto-detection
- built-ins should only match if they are a call - fix function detection
-
-
-
-
-
fix(ocaml)
=>
does not actually seem to be a part of language- I looked but couldn't find any reference to this.
-
-
fix(n1ql) do not hobble relevancy of strings
- There is no reason to do this every other language gets credit for simple strings.
-
fix(javascript) remove relevance of
ident =>
- This is found in other langauges and isn't a strong signal.
-