Skip to content

Commit

Permalink
Revert removal of git.io links
Browse files Browse the repository at this point in the history
This commit reverts github-linguist#5880.
  • Loading branch information
Alhadis authored Apr 28, 2022
1 parent 45dbcca commit cddf747
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/linguist/heuristics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ disambiguations:
- language: Vim Help File
pattern: '(?:(?:^|[ \t])(?:vi|Vi(?=m))(?:m[<=>]?[0-9]+|m)?|[ \t]ex)(?=:(?=[ \t]*set?[ \t][^\r\n:]+:)|:(?![ \t]*set?[ \t]))(?:(?:[ \t]*:[ \t]*|[ \t])\w*(?:[ \t]*=(?:[^\\\s]|\\.)*)?)*[ \t:](?:filetype|ft|syntax)[ \t]*=(help)(?=$|\s|:)'
# HACK: This is a contrived use of heuristics needed to address
# an unusual edge-case. See https://github.com/github/linguist/pull/4734#discussion_r479653547 for discussion.
# an unusual edge-case. See https://git.io/JULye for discussion.
- language: Text
- extensions: ['.url']
rules:
Expand Down
4 changes: 2 additions & 2 deletions lib/linguist/languages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
# a file is edited. This must match one of the filenames in http://git.io/3XO_Cg.
# Use "text" if a mode does not exist.
# codemirror_mode - A String name of the CodeMirror Mode used for highlighting whenever a file is edited.
# This must match a mode from https://github.com/codemirror/CodeMirror/tree/master/mode
# This must match a mode from https://git.io/vi9Fx
# codemirror_mime_type - A String name of the file mime type used for highlighting whenever a file is edited.
# This should match the `mime` associated with the mode from https://github.com/codemirror/CodeMirror/blob/master/mode/meta.js
# This should match the `mime` associated with the mode from https://git.io/f4SoQ
# wrap - Boolean wrap to enable line wrapping (default: false)
# extensions - An Array of associated extensions (the first one is
# considered the primary extension, the others should be
Expand Down
2 changes: 1 addition & 1 deletion script/add-grammar
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ done
for cmd in docker git sed ruby bundle; do
command -v "$cmd" >/dev/null 2>&1 || {
warn "Required command '$cmd' not found"
warn 'See CONTRIBUTING.md for help on getting started: https://github.com/github/linguist/blob/HEAD/CONTRIBUTING.md#dependencies'
warn 'See CONTRIBUTING.md for help on getting started: https://git.io/J0eqy'
exit 1
}
done
Expand Down

0 comments on commit cddf747

Please sign in to comment.