Same for Fortran

This commit is contained in:
Clément Fournier
2020-09-01 17:15:00 +02:00
parent bc0d9c781d
commit bc4b008b6e
4 changed files with 716 additions and 461 deletions

View File

@ -14,6 +14,6 @@ public class FortranLanguage extends AbstractLanguage {
* Create a Fortran Language instance.
*/
public FortranLanguage() {
super("Fortran", "fortran", new FortranTokenizer(), ".for", ".f", ".f66", ".f77", ".f90");
super("Fortran", "fortran", new AnyTokenizer("!"), ".for", ".f", ".f66", ".f77", ".f90");
}
}

View File

@ -10,7 +10,10 @@ import java.util.ArrayList;
* Tokenizer implementation for Fortran
*
* @author Romain PELISSE - romain.pelisse@atosorigin.com
*
* @deprecated Was replaced by an {@link AnyTokenizer}. Use {@link FortranLanguage#getTokenizer()} anyway
*/
@Deprecated
public class FortranTokenizer extends AbstractTokenizer implements Tokenizer {
/**

View File

@ -27,7 +27,7 @@ public class FortranTokenizerTest extends CpdTextComparisonTest {
@Override
public Tokenizer newTokenizer(Properties properties) {
return new FortranTokenizer();
return new FortranLanguage().getTokenizer();
}
@Test