File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -153,9 +153,14 @@ link_additional_packages
153153create_dummy_syntaxes
154154
155155echo " ::group::Checking syntax test filenames"
156- for path in $( find . -iname syntax_test* | grep -v ' /syntax_test_ ' ) ; do
156+ for path in $( find . -iname syntax_test* ) ; do
157157 file=" ${path/ $packages \/ $INPUT_PACKAGE_NAME / $INPUT_PACKAGE_ROOT } "
158- echo " ::warning file=$file ::Syntax test files must begin with 'syntax_test_'"
158+ if echo " $file " | grep -v ' /syntax_test_' ; then
159+ echo " ::warning file=$file ::Syntax test filenames must begin with 'syntax_test_'"
160+ fi
161+ if head -n 1 " $path " | grep -vEq ' .+\bSYNTAX TEST\b.+".+\.(sublime-syntax|tmLanguage)"' ; then
162+ echo " ::warning file=$file ::Syntax test file format at https://www.sublimetext.com/docs/syntax.html#testing"
163+ fi
159164done
160165echo ' ::endgroup::'
161166
You can’t perform that action at this time.
0 commit comments