mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-19 22:53:05 -03:00
Sync to linguist 7.2.0: heuristics.yml support (#189)
Sync \w Github Linguist v7.2.0 Includes new way of handling `heuristics.yml` and all `./data/*` re-generated using Github Linguist [v7.2.0](https://github.com/github/linguist/releases/tag/v7.2.0) release tag. - many new languages - better vendoring detection - update doc on update&known issues.
This commit is contained in:
40
internal/code-generator/generator/test_files/heuristics.yml
Normal file
40
internal/code-generator/generator/test_files/heuristics.yml
Normal file
@ -0,0 +1,40 @@
|
||||
# Tests care about number and order of heuristics in this fixture
|
||||
disambiguations:
|
||||
|
||||
- extensions: ['.h', '.hh']
|
||||
rules:
|
||||
- language: Objective-C
|
||||
pattern: 'objc'
|
||||
- language: C++
|
||||
named_pattern: cpp
|
||||
|
||||
- extensions: ['.f']
|
||||
rules:
|
||||
- language: Forth
|
||||
pattern: #as in .md
|
||||
- 'f'
|
||||
- 'f1'
|
||||
- language: Filebench WML
|
||||
pattern: 'f2'
|
||||
- language: Fortran
|
||||
named_pattern: fortran
|
||||
|
||||
- extensions: ['.ms']
|
||||
rules:
|
||||
- language: Roff
|
||||
pattern: 'rp'
|
||||
- language: Unix Assembly
|
||||
and:
|
||||
- negative_pattern: 'np'
|
||||
- pattern: 'p'
|
||||
- language: MAXScript
|
||||
|
||||
- extensions: ['.mod']
|
||||
rules:
|
||||
- language: [Linux Kernel Module, AMPL]
|
||||
|
||||
named_patterns:
|
||||
cpp:
|
||||
- 'regex1'
|
||||
- 'regex2'
|
||||
fortran: 'regex3'
|
Reference in New Issue
Block a user