net.sourceforge.pmd.lang.tsql.TSqlLanguageModule Maven / Gradle / Ivy
/*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.tsql;
import net.sourceforge.pmd.cpd.CpdLexer;
import net.sourceforge.pmd.lang.LanguagePropertyBundle;
import net.sourceforge.pmd.lang.LanguageRegistry;
import net.sourceforge.pmd.lang.impl.CpdOnlyLanguageModuleBase;
import net.sourceforge.pmd.lang.tsql.cpd.TSqlCpdLexer;
/**
* @author [email protected]
*/
public class TSqlLanguageModule extends CpdOnlyLanguageModuleBase {
private static final String ID = "tsql";
public TSqlLanguageModule() {
super(LanguageMetadata.withId(ID).name("T-SQL").extensions("sql"));
}
public static TSqlLanguageModule getInstance() {
return (TSqlLanguageModule) LanguageRegistry.CPD.getLanguageById(ID);
}
@Override
public CpdLexer createCpdLexer(LanguagePropertyBundle bundle) {
return new TSqlCpdLexer();
}
}