Merge pull request #11 from dtzWill/fix/asm-regexp

parser.go: Fix regexp used for detecting asm input
This commit is contained in:
Ian A Mason 2017-08-12 15:24:46 -07:00 committed by GitHub
commit bd2d3d1a27

View File

@ -269,7 +269,7 @@ func getHashedPath(path string) string {
} }
func (pr *parserResult) inputFileCallback(flag string, _ []string) { func (pr *parserResult) inputFileCallback(flag string, _ []string) {
var regExp = regexp.MustCompile(`\\.(s|S)$`) var regExp = regexp.MustCompile(`\.(s|S)$`)
pr.InputFiles = append(pr.InputFiles, flag) pr.InputFiles = append(pr.InputFiles, flag)
if regExp.MatchString(flag) { if regExp.MatchString(flag) {
pr.IsAssembly = true pr.IsAssembly = true