forked from phoedos/pmd
Same for Fortran
This commit is contained in:
@ -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");
|
||||
}
|
||||
}
|
||||
|
@ -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 {
|
||||
|
||||
/**
|
||||
|
@ -27,7 +27,7 @@ public class FortranTokenizerTest extends CpdTextComparisonTest {
|
||||
|
||||
@Override
|
||||
public Tokenizer newTokenizer(Properties properties) {
|
||||
return new FortranTokenizer();
|
||||
return new FortranLanguage().getTokenizer();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user