Just add morekeywords={SolveValues}
in the definition?
in this list you can manually add other ones. The definition is done only one time. You can save that in the preamble. So you only need to add it one time. Other than this, you have to edit the listings style file itself which contains the language=Mathematica
default settings.
But why do that? it is just as easy to add morekeywords={SolveValues}
in your preamble.
\documentclass[12pt]{article}
\usepackage{listings,xcolor}
\ProvidesPackage{latexalpha2Win}
\lstset{language=Mathematica}
\lstset{basicstyle={\sffamily\footnotesize},
numbers=left,
numberstyle=\tiny\color{gray},
numbersep=5pt,
breaklines=true,
captionpos={t},
frame={lines},
rulecolor=\color{black},
framerule=0.5pt,
columns=flexible,
tabsize=2,
morekeywords={SolveValues}
}
\begin{document}
\begin{lstlisting}[breaklines]
SolveValues[Sqrt[8 x^2 - 3 x - 10] == -2 + 3 x, x, Reals]
\end{lstlisting}
\end{document}
gives
Btw, it is better to define listing style. This way you can have different styles for different languages within the same document without them clashing with each others. Like this
\documentclass[12pt]{article}
\usepackage{listings,xcolor}
\ProvidesPackage{latexalpha2Win}
\lstdefinestyle{MMA}{%
language=Mathematica,%
breaklines=true,
basicstyle={\sffamily\footnotesize},
numbers=left,
numberstyle=\tiny\color{gray},
numbersep=5pt,
breaklines=true,
captionpos={t},
frame={lines},
rulecolor=\color{black},
framerule=0.5pt,
columns=flexible,
tabsize=2,
morekeywords={SolveValues}
}
\lstnewenvironment{MMA}{%
\lstset{style=MMA}}{}
\begin{document}
\begin{MMA}
SolveValues[Sqrt[8 x^2 - 3 x - 10] == -2 + 3 x, x, Reals]
\end{MMA}
\end{document}
In my env. I have 10 different custom listing styles for 10 different languages. (Fortran, C++, Java, Maple, etc...)