Skip to content

Commit 2556965

Browse files
committed
add travis-ci badge. cleanup
1 parent 593f94a commit 2556965

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

Diff for: .travis.yml

-9
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ python:
33
- 3.8
44

55
stages:
6-
- lint
76
# Only execute deployment stage on tagged release commits in the form of "v1.2.3"
87
# and from your repository (e.g. not PRs).
98
# Also allows alpha/beta releases such as "v1.2.3b2"
@@ -12,14 +11,6 @@ stages:
1211

1312
jobs:
1413
include:
15-
# Run lint
16-
- stage: lint
17-
name: Lint
18-
install:
19-
- python -m pip install pylint
20-
- python -m pip install .
21-
script: pylint rdl_pygments
22-
2314
# Deploy source distribution
2415
- stage: deploy
2516
name: Deploy source distribution

Diff for: README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pygments-systemrdl.svg)](https://pypi.org/project/pygments-systemrdl)
2+
[![Build Status](https://travis-ci.com/SystemRDL/pygments-systemrdl.svg?branch=master)](https://travis-ci.com/SystemRDL/pygments-systemrdl)
23

34
# pygments-systemrdl
45

Diff for: rdl_pygments/rdllexer.py

+10-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
from pygments.lexers.perl import PerlLexer
44

55
class SystemRDLLexer(lexer.RegexLexer):
6+
"""
7+
Pygments Lexer for SystemRDL
8+
"""
69
name = 'SystemRDL'
710
aliases = ['systemrdl']
811
filenames = ['*.rdl']
@@ -44,7 +47,9 @@ class SystemRDLLexer(lexer.RegexLexer):
4447
],
4548

4649
'perl': [
47-
(r'(?s)(<%=?)(.+?)(%>)', lexer.bygroups(token.Name.Tag, lexer.using(PerlLexer), token.Name.Tag)),
50+
(
51+
r'(?s)(<%=?)(.+?)(%>)',
52+
lexer.bygroups(token.Name.Tag, lexer.using(PerlLexer), token.Name.Tag)),
4853
],
4954

5055
'verilog_pp': [
@@ -83,6 +88,9 @@ class SystemRDLLexer(lexer.RegexLexer):
8388
],
8489

8590
'comp-def': [
86-
(r'(addrmap|regfile|reg|field|mem|signal)(\s+)([a-zA-Z][\w]*)', lexer.bygroups(token.Keyword, token.Text, token.Name.Class))
91+
(
92+
r'(addrmap|regfile|reg|field|mem|signal)(\s+)([a-zA-Z][\w]*)',
93+
lexer.bygroups(token.Keyword, token.Text, token.Name.Class)
94+
)
8795
],
8896
}

0 commit comments

Comments
 (0)