From deaaa98f4ea1c8866bc79dd973c6a325aa00694f Mon Sep 17 00:00:00 2001 From: Cobalt Yang Date: Fri, 21 Aug 2020 18:22:55 +0800 Subject: [PATCH] Fixed-form highlight: support \t at start of line In fixed-form Fortran, \t at the start of a line is the same as 6 white-spaces, which is supported by this modification. --- syntaxes/fortran_fixed-form.tmLanguage.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/syntaxes/fortran_fixed-form.tmLanguage.json b/syntaxes/fortran_fixed-form.tmLanguage.json index 5b32ee54..d12dccb9 100644 --- a/syntaxes/fortran_fixed-form.tmLanguage.json +++ b/syntaxes/fortran_fixed-form.tmLanguage.json @@ -56,7 +56,7 @@ "end": "(?=\\n)" }, "line-header": { - "match": "^(?!\\s*[!#])(?:([ \\d]{5} )|( {5}.)|(.{1,5}))", + "match": "^(?!\\s*[!#])(?:([ \\d]{5} )|( {5}.)|(\\t)|(.{1,5}))", "captures": { "1": { "name": "constant.numeric.fortran" @@ -65,9 +65,12 @@ "name": "keyword.line-continuation-operator.fortran" }, "3": { + "name": "source.fortran.free" + }, + "4": { "name": "invalid.error.fortran" } } } } -} \ No newline at end of file +}