Skip to content

Commit e6b42a2

Browse files
Use a proper name for highlights.scm (#43412)
Release Notes: - N/A
1 parent 7bbc65e commit e6b42a2

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

script/analyze_highlights.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
#!/usr/bin/env python3
22
"""
3-
This script analyzes all the highlight.scm files in our embedded languages and extensions.
3+
This script analyzes all the highlights.scm files in our embedded languages and extensions.
44
It counts the number of unique instances of @{name} and the languages in which they are used.
55
66
This is useful to help avoid accidentally introducing new tags when appropriate ones already exist when adding new languages.
77
88
Flags:
9-
-v, --verbose: Include a detailed list of languages for each tag found in the highlight.scm files.
9+
-v, --verbose: Include a detailed list of languages for each tag found in the highlights.scm files.
1010
"""
1111

12+
import argparse
13+
import re
1214
from collections import defaultdict
1315
from pathlib import Path
1416
from typing import Any
15-
import argparse
16-
import re
1717

1818
pattern = re.compile(r'@(?!_)[a-zA-Z_.]+')
1919

2020
def parse_arguments():
21-
parser = argparse.ArgumentParser(description='Analyze highlight.scm files for unique instances and their languages.')
21+
parser = argparse.ArgumentParser(description='Analyze highlights.scm files for unique instances and their languages.')
2222
parser.add_argument('-v', '--verbose', action='store_true', help='Include a list of languages for each tag.')
2323
return parser.parse_args()
2424

0 commit comments

Comments
 (0)