summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilfred Hughes <me@wilfred.me.uk>2024-01-28 12:03:44 -0800
committerGitHub <noreply@github.com>2024-01-28 12:03:44 -0800
commit8df2fd382332c38660716222e7b4b048036b5083 (patch)
treefa45ed83dcf720fdd3101bcaf0c095aa238c67e8
parent6c4310e33b7d024587cc81a0d44028c8271cb88e (diff)
parent1087c805d01ba542b855ac52235d06f7e707aa5c (diff)
Merge pull request #619 from arbrauns/manual-new-parser-fix
manual: fix instructions for adding new parser
-rw-r--r--manual/src/adding_a_parser.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/manual/src/adding_a_parser.md b/manual/src/adding_a_parser.md
index b1fdac2f6..6ff46b301 100644
--- a/manual/src/adding_a_parser.md
+++ b/manual/src/adding_a_parser.md
@@ -97,8 +97,8 @@ Json => "json",
```
There may also file names or shebangs associated with your language; configure those
-by adapting the `LANG_FILE_NAMES` constant and the `from_shebang` method in that file, respectively.
-Add any file extensions associated to your language to the `LANG_EXTENSIONS` constant.
+by adapting the `language_globs`, `from_emacs_mode_header` and `from_shebang` functions
+in that file.
[GitHub's linguist definitions](https://github.com/github/linguist/blob/master/lib/linguist/languages.yml)
are a useful source of common file extensions.