Skip to content

Commit

Permalink
feat: add heuristic to distinguish Survex data and mdsvex files
Browse files Browse the repository at this point in the history
  • Loading branch information
mahtaran committed Jan 7, 2025
1 parent f3f27cc commit 5075cce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/linguist/heuristics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,11 @@ disambiguations:
rules:
- language: STL
pattern: '\A\s*solid(?:$|\s)[\s\S]*^endsolid(?:$|\s)'
- extensions: ['.svx']
rules:
- language: Survex data
pattern: '\A(;|\*[^*]+$)'
- language: mdsvex
- extensions: ['.sw']
rules:
- language: Sway
Expand Down

0 comments on commit 5075cce

Please sign in to comment.