-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathCsvLexerAdapter.java
More file actions
24 lines (18 loc) · 809 Bytes
/
CsvLexerAdapter.java
File metadata and controls
24 lines (18 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package net.seesharpsoft.intellij.plugins.csv;
import com.intellij.lexer.FlexAdapter;
import net.seesharpsoft.intellij.plugins.csv.components.CsvEscapeCharacter;
import net.seesharpsoft.intellij.plugins.csv.components.CsvSeparatorHolder;
import net.seesharpsoft.intellij.plugins.csv.components.CsvValueSeparator;
public class CsvLexerAdapter extends FlexAdapter implements CsvSeparatorHolder {
public CsvLexerAdapter(CsvValueSeparator separator, CsvEscapeCharacter escapeCharacter, boolean supportComments) {
super(new CsvLexer(null, separator, escapeCharacter, supportComments));
}
@Override
public CsvLexer getFlex() {
return (CsvLexer) super.getFlex();
}
@Override
public CsvValueSeparator getSeparator() {
return getFlex().getSeparator();
}
}