Skip to content

Commit

Permalink
add travis-ci badge. cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
amykyta3 committed Sep 17, 2020
1 parent 593f94a commit 2556965
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
9 changes: 0 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ python:
- 3.8

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

jobs:
include:
# Run lint
- stage: lint
name: Lint
install:
- python -m pip install pylint
- python -m pip install .
script: pylint rdl_pygments

# Deploy source distribution
- stage: deploy
name: Deploy source distribution
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pygments-systemrdl.svg)](https://pypi.org/project/pygments-systemrdl)
[![Build Status](https://travis-ci.com/SystemRDL/pygments-systemrdl.svg?branch=master)](https://travis-ci.com/SystemRDL/pygments-systemrdl)

# pygments-systemrdl

Expand Down
12 changes: 10 additions & 2 deletions rdl_pygments/rdllexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
from pygments.lexers.perl import PerlLexer

class SystemRDLLexer(lexer.RegexLexer):
"""
Pygments Lexer for SystemRDL
"""
name = 'SystemRDL'
aliases = ['systemrdl']
filenames = ['*.rdl']
Expand Down Expand Up @@ -44,7 +47,9 @@ class SystemRDLLexer(lexer.RegexLexer):
],

'perl': [
(r'(?s)(<%=?)(.+?)(%>)', lexer.bygroups(token.Name.Tag, lexer.using(PerlLexer), token.Name.Tag)),
(
r'(?s)(<%=?)(.+?)(%>)',
lexer.bygroups(token.Name.Tag, lexer.using(PerlLexer), token.Name.Tag)),
],

'verilog_pp': [
Expand Down Expand Up @@ -83,6 +88,9 @@ class SystemRDLLexer(lexer.RegexLexer):
],

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

0 comments on commit 2556965

Please sign in to comment.