diff options
Diffstat (limited to 'tests/lexers/fortran/example2.txt')
| -rw-r--r-- | tests/lexers/fortran/example2.txt | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/tests/lexers/fortran/example2.txt b/tests/lexers/fortran/example2.txt new file mode 100644 index 00000000..988f6bdd --- /dev/null +++ b/tests/lexers/fortran/example2.txt @@ -0,0 +1,74 @@ +---input--- +program main + integer, parameter :: mykind = selected_real_kind() + print *, 1 + print *, 1_mykind + print *, 1. + print *, 1._mykind + print *, (1., 1._mykind) +end program main + +---tokens--- +'program ' Keyword +'main' Name +'\n ' Text +'integer' Keyword.Type +',' Punctuation +' ' Text +'parameter' Keyword +' ' Text +'::' Keyword.Declaration +' ' Text +'mykind' Name +' ' Text +'=' Operator +' ' Text +'selected_real_kind' Name.Builtin +'(' Punctuation +')' Punctuation +'\n ' Text +'print' Keyword +' ' Text +'*' Operator +',' Punctuation +' ' Text +'1' Literal.Number.Integer +'\n ' Text +'print' Keyword +' ' Text +'*' Operator +',' Punctuation +' ' Text +'1_mykind' Literal.Number.Integer +'\n ' Text +'print' Keyword +' ' Text +'*' Operator +',' Punctuation +' ' Text +'1.' Literal.Number.Float +'\n ' Text +'print' Keyword +' ' Text +'*' Operator +',' Punctuation +' ' Text +'1._mykind' Literal.Number.Float +'\n ' Text +'print' Keyword +' ' Text +'*' Operator +',' Punctuation +' ' Text +'(' Punctuation +'1.' Literal.Number.Float +',' Punctuation +' ' Text +'1._mykind' Literal.Number.Float +')' Punctuation +'\n' Text + +'end ' Keyword +'program ' Keyword +'main' Name +'\n' Text |
