I am trying to control the spacing between the line numbers and my code with the listings package. Below follows the code I am using:
\begin{figure*} [!ht]
\centering
\lstset{showstringspaces=false,
tabsize=1,
breaklines=true,
basicstyle=\footnotesize,
numbers=left,
showspaces=false,
extendedchars=false,
numberstyle=\scriptsize,
numbersep=0pt}
\begin{lstlisting}
INPORT::[name] => [rec.comp.] @ [rec. port]
OUTPORT::[name] <= [orig.comp.] @ [out port]
[PRIMITIVE]::[name]<=[rec.port2]<-[orig.comp1.]@[out port1] [rec.port2]<-[orig.comp2.]@[out port2]...
LUT[n] [logic_func]::[name]<=[rec.port2]<-[orig.comp1.]@[out port1] [rec.port2]<-[orig.comp2.]@[out port2]...
\end{lstlisting}
\caption{single line component netlist of the tiny circuit example.}
\label{fig:netlistSyntax}
\end{figure*}
The result I am getting is as follows:
I am not happy with the spacing between the code and numbers and I am trying to change it by changing the numbersep parameter, as it says in the package documentation, "is the distance between number and listing". Even when I use '0pt' I am not getting the code and the numbers close.
What am I missing here?

listingsto remove the first N characters of the line with thegobbleoption, so try\begin{lstlisting}[gobble=4], or add that option to the\lstset.There is also a package for automatic gobbling of whitespace: add\usepackage{lstautogobble}to the preamble, andautogobbleto the\lstset. (From https://tex.stackexchange.com/questions/19953/how-to-automatically-skip-leading-white-spaces-in-listings) – Torbjørn T. Mar 28 '20 at 22:41