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

moznion / p5-Compiler-Lexer
93%
master: 93%

Build:
Build:
LAST BUILD BRANCH: fix/if_stmt_on_use_declaration
DEFAULT BRANCH: master
Repo Added 19 Mar 2014 02:06AM UTC
Files 3
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH fix/format_decl_handling
branch: fix/format_decl_handling
CHANGE BRANCH
x
Reset
  • fix/format_decl_handling
  • add_HereDocumentBareTag_token_type
  • extra_allocation_memory
  • fix/if_stmt_on_use_declaration
  • fix/version_string_handling
  • master
  • travis_and_coveralls

pending completion
11

push

travis-ci

moznion
Fix handling for format declaration

If `format` is used at non declaration context (for example: key of a hash),
it makes incapable of tokenizing action. It breaks structure of tokens.

I'll show an example code to reproduce;

```perl
my $foo = {
    format => 1,  # <= here's format is misrecognized as a FormatDecl
};

my $bar =  # <= code which is after assign operator will be broken
  "asdf";
1;
```

When tokenizing this code, result of it will be broken because `format`
which is a key of hash is misrecognized as a `FormatDecl`.
So I fixed it.

56 of 60 relevant lines covered (93.33%)

16042.62 hits per line

Relevant lines Covered
Build:
Build:
60 RELEVANT LINES 56 COVERED LINES
16042.62 HITS PER LINE
Source Files on fix/format_decl_handling
  • List 0
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
11 fix/format_decl_handling Fix handling for format declaration If `format` is used at non declaration context (for example: key of a hash), it makes incapable of tokenizing action. It breaks structure of tokens. I'll show an example code to reproduce; ```perl my $foo = {... push 20 Feb 2015 05:49PM UTC moznion travis-ci pending completion  
9 fix/format_decl_handling Fix handling for format declaration If `format` is used at non declaration context (for example: key of a hash), it makes incapable of tokenizing action. It breaks structure of tokens. So fixed it. push 20 Feb 2015 05:36PM UTC moznion travis-ci pending completion  
See All Builds (9)
  • Repo on GitHub
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

© 2025 Coveralls, Inc