• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Camelcade / Perl5-IDEA / #525521660

24 Aug 2025 01:28PM UTC coverage: 75.89% (-6.3%) from 82.227%
#525521660

push

github

hurricup
Migrated coverage reporting to https://github.com/nbaztec/coveralls-jacoco-gradle-plugin

See: https://github.com/kt3k/coveralls-gradle-plugin/issues/119

14751 of 22639 branches covered (65.16%)

Branch coverage included in aggregate %.

31091 of 37767 relevant lines covered (82.32%)

0.82 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

63.64
/plugin/common/src/main/java/com/perl5/lang/pod/PodParserDefinition.java
1
/*
2
 * Copyright 2015-2025 Alexandr Evstigneev
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 * http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16

17
package com.perl5.lang.pod;
18

19
import com.intellij.lang.ASTNode;
20
import com.intellij.lang.ParserDefinition;
21
import com.intellij.lang.PsiParser;
22
import com.intellij.lexer.Lexer;
23
import com.intellij.openapi.project.Project;
24
import com.intellij.psi.FileViewProvider;
25
import com.intellij.psi.PsiElement;
26
import com.intellij.psi.PsiFile;
27
import com.intellij.psi.tree.IFileElementType;
28
import com.intellij.psi.tree.TokenSet;
29
import com.perl5.lang.perl.parser.elementTypes.PerlPsiElementFactory;
30
import com.perl5.lang.pod.lexer.PodLexerAdapter;
31
import com.perl5.lang.pod.lexer.PodTokenSetsEx;
32
import com.perl5.lang.pod.parser.PodParser;
33
import com.perl5.lang.pod.parser.psi.impl.PodFileImpl;
34
import org.jetbrains.annotations.NotNull;
35

36
import static com.perl5.lang.pod.lexer.PodElementTypes.FILE;
37

38
public class PodParserDefinition implements ParserDefinition {
1✔
39
  @Override
40
  public @NotNull Lexer createLexer(Project project) {
41
    return new PodLexerAdapter();
1✔
42
  }
43

44
  @Override
45
  public @NotNull TokenSet getWhitespaceTokens() {
46
    return PodTokenSetsEx.WHITE_SPACES;
1!
47
  }
48

49
  @Override
50
  public @NotNull TokenSet getCommentTokens() {
51
    return PodTokenSetsEx.COMMENTS;
1!
52
  }
53

54
  @Override
55
  public @NotNull TokenSet getStringLiteralElements() {
56
    return TokenSet.EMPTY;
1!
57
  }
58

59
  @Override
60
  public @NotNull PsiParser createParser(final Project project) {
61
    return new PodParser();
1✔
62
  }
63

64
  @Override
65
  public @NotNull IFileElementType getFileNodeType() {
66
    return FILE;
1!
67
  }
68

69
  @Override
70
  public @NotNull PsiFile createFile(@NotNull FileViewProvider viewProvider) {
71
    return new PodFileImpl(viewProvider);
1✔
72
  }
73

74
  @Override
75
  public @NotNull SpaceRequirements spaceExistenceTypeBetweenTokens(ASTNode left, ASTNode right) {
76
    return SpaceRequirements.MAY;
×
77
  }
78

79
  @Override
80
  public @NotNull PsiElement createElement(ASTNode node) {
81
    return PerlPsiElementFactory.create(node.getElementType(), node);
1!
82
  }
83
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc