Skip to content

Commit

Permalink
Set 'attribute' token for XPath 2 with multi-label ('kind test', 'axis')
Browse files Browse the repository at this point in the history
  • Loading branch information
brunato committed Dec 11, 2019
1 parent 02c5798 commit af3a65f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 7 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
CHANGELOG
*********

`v1.3.3`_ (2019-12-xx)
======================
* Fix 'attribute' multi-role token (axis and kind test)

`v1.3.2`_ (2019-12-10)
======================
* Add token labels 'sequence types' and 'kind test' for callables that are not XPath functions
Expand Down Expand Up @@ -175,3 +179,4 @@ CHANGELOG
.. _v1.3.0: https://github.com/brunato/elementpath/compare/v1.2.1...v1.3.0
.. _v1.3.1: https://github.com/brunato/elementpath/compare/v1.3.0...v1.3.1
.. _v1.3.2: https://github.com/brunato/elementpath/compare/v1.3.1...v1.3.2
.. _v1.3.3: https://github.com/brunato/elementpath/compare/v1.3.2...v1.3.3
2 changes: 1 addition & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
# The short X.Y version
version = '1.3'
# The full version, including alpha/beta/rc tags
release = '1.3.2'
release = '1.3.3'


# -- General configuration ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion elementpath/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#
# @author Davide Brunato <brunato@sissa.it>
#
__version__ = '1.3.2'
__version__ = '1.3.3'
__author__ = "Davide Brunato"
__contact__ = "brunato@sissa.it"
__copyright__ = "Copyright 2018-2019, SISSA"
Expand Down
4 changes: 2 additions & 2 deletions elementpath/xpath2_constructors.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ def evaluate(self, context=None):
# multi-value label (using a tuple of values) and a custom pattern. Finally a custom nud
# or led method is required.
unregister('attribute')
register('attribute', lbp=90, rbp=90, label=('function', 'axis'),
register('attribute', lbp=90, rbp=90, label=('kind test', 'axis'),
pattern=r'\battribute(?=\s*\:\:|\s*\(\:.*\:\)\s*\:\:|\s*\(|\s*\(\:.*\:\)\()')


Expand All @@ -441,7 +441,7 @@ def nud(self):
self.parser.advance(',')
self[1:] = self.parser.expression(5),
self.parser.advance(')')
self.label = 'function'
self.label = 'kind test'
return self


Expand Down
4 changes: 2 additions & 2 deletions publiccode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ publiccodeYmlVersion: '0.2'
name: elementpath
url: 'https://github.com/sissaschool/elementpath'
landingURL: 'https://github.com/sissaschool/elementpath'
releaseDate: '2019-12-10'
softwareVersion: v1.3.2
releaseDate: '2019-12-xx'
softwareVersion: v1.3.3
developmentStatus: stable
platforms:
- linux
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

setup(
name='elementpath',
version='1.3.2',
version='1.3.3',
packages=['elementpath'],
author='Davide Brunato',
author_email='brunato@sissa.it',
Expand Down

0 comments on commit af3a65f

Please sign in to comment.