Skip to content

Commit 9d31bf7

Browse files
authored
Merge pull request #12 from ggiesen/fix_colons_headings
Fix capitalization following colons in headings
2 parents 2faeffb + b95d50c commit 9d31bf7

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

Google/Colons.yml

+1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ message: "'%s' should be in lowercase."
33
link: 'https://developers.google.com/style/colons'
44
nonword: true
55
level: warning
6+
scope: sentence
67
tokens:
78
- ':\s[A-Z]'

Google/Headings.yml

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ link: 'https://developers.google.com/style/capitalization#capitalization-in-titl
44
level: warning
55
scope: heading
66
match: $sentence
7+
indicators:
8+
- ':'
79
exceptions:
810
- Azure
911
- CLI

fixtures/Headings/test.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@
1010

1111
# Using gRPC
1212

13-
# This vs. heading
13+
# This vs. heading
14+
15+
# This is a heading: This is a subheading

0 commit comments

Comments
 (0)